导航

上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 97 下一页

2012年7月16日

摘要: ios App states 应用的五种状态State描述Not running 应用没有被启动;或者应用正在运行但是途中被系统终止了。Inactive 应用在前台运行,但是还不能接收事件(当时或许正在执行其他代码);一个应用通常只是很短时间停留在这个状态,很快它将切换到一个不同的状态; 唯一在此状态停留时间比较长的情况是:当用户锁屏时,或者系统提示用户去响应某些(诸如电话来电、... 阅读全文

posted @ 2012-07-16 17:02 蝈蝈俊 阅读(1015) 评论(0) 推荐(0)

2012年6月8日

摘要: 转自:http://favo.asia/2010/06/uiscrollview-and-lazy-loading/这个网址不稳定,时好时坏,就转到我的博客If you have encountered memory problems loading too many images into your UIScrollView, lazy loading them is your answer.L... 阅读全文

posted @ 2012-06-08 15:45 蝈蝈俊 阅读(534) 评论(0) 推荐(0)

2012年6月6日

摘要: 当你向已经释放的对象发送消息时就会出现错误:EXC_BAD_ACCESS。当我们执行时 Xcode 一出错,却是定位在我在 AppDelegate 的 application:didFinishLaunchingWithOptions: 方法上的某行了,如果代码量多了,要查找具体问题非常难,但凭经验了。不过NSZombieEnabled 环境变量可以帮我们的忙,就是当设置NSZombieEnabl... 阅读全文

posted @ 2012-06-06 15:52 蝈蝈俊 阅读(433) 评论(0) 推荐(0)

2012年5月30日

摘要: 在storyboard中,segue有几种不同的类型,在iphone和ipad的开发中,segue的类型是不同的。在iphone中,segue有:push,modal,和custom三种不同的类型,这些类型的区别在与新页面出现的方式。而在ipad中,有push,modal,popover,replace和custom五种不同的类型。modal模态转换最常用的场景,新的场景完全盖住了旧的那个。用户无法再与上一个场景交互,除非他们先关闭这个场景。是在viewController中的标准切换的方式,包括淡出什么的,可以选切换动画。Modalview:就是会弹出一个view,你只能在该view上操作, 阅读全文

posted @ 2012-05-30 16:59 蝈蝈俊 阅读(8190) 评论(0) 推荐(0)

2012年5月28日

摘要: UIViewController initWithNibName这时候是延迟加载主要代码如下: ShowViewController * showMessage = [[ShowViewController alloc] initWithNibName:@"ShowViewController" bundle:nil]; self.sh... 阅读全文

posted @ 2012-05-28 18:33 蝈蝈俊 阅读(4995) 评论(0) 推荐(1)

2012年5月25日

摘要: iOS app life cycle 生命周期图 第一步: Main 有C相关语言开发经验的朋友都知道,所有程序运行都是从 main 程序开始的。 #import <UIKit/UIKit.h>#import "NoteNavAppDelegate.h"int main(int argc, char *argv[]){ @autoreleasepool { r... 阅读全文

posted @ 2012-05-25 16:40 蝈蝈俊 阅读(747) 评论(0) 推荐(0)

摘要: XCode 4 以后,项目模版中没有了 Window-based Application,跟它比较接近的项目模版是 Empty Application. 如下图的选择: 我们想建一个 Window-based Application,需要在 Empty Application 基础上做一些设置。 下面是操作步骤, 新建一个 Empty Application 默认的 Empty A... 阅读全文

posted @ 2012-05-25 15:38 蝈蝈俊 阅读(9574) 评论(5) 推荐(1)

2012年5月24日

摘要: NULL Values These macros define null values for classes and instances. NULL可以用在C语言的各种指针上 #define __DARWIN_NULL #define __DARWIN_NULLConstants c 特有的,例子: int *pointerToInt = NULL; char... 阅读全文

posted @ 2012-05-24 15:06 蝈蝈俊 阅读(1325) 评论(0) 推荐(0)

2012年5月23日

摘要: loaded the "*****" nib but the view outlet was not set 错误的解决办法。在Xcode下不用Storyboard做一些试验时,总是提示:loaded the "*****" nib but the view outlet was not set网上搜索了一下,发现是nib文件没有跟xxxViewControler关联导致的.1, 打开nib文件2... 阅读全文

posted @ 2012-05-23 09:02 蝈蝈俊 阅读(5532) 评论(0) 推荐(0)

2012年5月22日

摘要: IBOutlet和IBAction 是为了你在interface building 设计交互界面的时候告诉它这些是你要用到的,其他的没标明的都是不需要直接和界面交互的。 简单理解: 假设有两个黑盒子: 盒子A里放着代码 ,盒子B里放着盒子A要用到的ui组件 要想让A里的代码访问到B里的组件,比如想要修改label的文字 ,那些就要从A处打个洞连到B处,这时就用IBOu... 阅读全文

posted @ 2012-05-22 14:08 蝈蝈俊 阅读(930) 评论(1) 推荐(0)

上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 97 下一页