上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
  2012年8月10日
摘要: Posted on2011年10月14日by温泉当一个视图控制器被创建,并在屏幕上显示的时候。 代码的执行顺序1、 alloc 创建对象,分配空间2、init (initWithNibName) 初始化对象,初始化数据3、loadView 从nib载入视图 ,通常这一步不需要去干涉。除非你没有使用xib文件创建视图4、viewDidLoad 载入完成,可以进行自定义数据以及动态创建其他控件5、viewWillAppear 视图将出现在屏幕之前,马上这个视图就会被展现在屏幕上了6、viewDidAppear ... 阅读全文
posted @ 2012-08-10 17:11 tx天翔 阅读(7624) 评论(0) 推荐(0) 编辑
摘要: 点击Run:2012-08-10 16:41:45.019 Autosize[955:c07] - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions2012-08-10 16:41:45.042 Autosize[955:c07] - (void)viewDidLoad2012-08-10 16:41:45.043 Autosize[955:c07] - (void)viewWillAppear:(BOOL)animated2012 阅读全文
posted @ 2012-08-10 16:49 tx天翔 阅读(992) 评论(0) 推荐(0) 编辑
  2012年8月6日
摘要: yuyi012的公司接了个培训项目,给一个外包公司培训一批应届生,yuyi012从课程一半开始接手,讲了一个多月,内容包括UITableView,UIScrollView,AssetsLibrary,MapKit,AddressBook,AVFoundation,MediaPlayer,Coredata,Sqlite等等。每天晚上都会写一个demo第二天上课讲,代码里面基本都有中文注释,有的有上课用的ppt,现在把所有的例子都传到github上了。因为每个例子都只花了我一晚上时间,有bug再所难免,大家随便看看就好yuyi012的github主页https://github.com/yuyi0 阅读全文
posted @ 2012-08-06 22:46 tx天翔 阅读(918) 评论(0) 推荐(0) 编辑
  2012年7月24日
摘要: 在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions中添加如下测试:NSString* path = [[NSBundlemainBundle] pathForResource:@"textfile"ofType:@"txt"]; NSStringEncoding enc = NSUTF8StringEncoding; // this is a lie, so an error will r 阅读全文
posted @ 2012-07-24 16:33 tx天翔 阅读(2186) 评论(0) 推荐(0) 编辑
  2012年7月23日
摘要: 添加Nav方法:在AppDelegate中.h文件@property (strong, nonatomic) UINavigationController *navC;.m文件 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions添加方法2种如下:1 、self.navC = [[[UINavigationControlleralloc] init] autorelease]; [self.navCpushViewControll. 阅读全文
posted @ 2012-07-23 10:58 tx天翔 阅读(2653) 评论(0) 推荐(0) 编辑
  2012年7月22日
摘要: #if ! __has_feature(objc_arc)#warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).#endif 阅读全文
posted @ 2012-07-22 22:06 tx天翔 阅读(521) 评论(0) 推荐(0) 编辑
摘要: http://runmad.com/blog/2010/01/coloring-fun-with-morenavigationcontroller-and-it/修改More页面的Navigation背景及Edit Button [self.tabBarVC.moreNavigationController.navigationBarsetBackgroundImage:[UIImageimageNamed:@"NavBack.png"] forBarMetrics:UIBarMetricsDefault];// self.tabBarVC.moreNavigationCo 阅读全文
posted @ 2012-07-22 12:20 tx天翔 阅读(659) 评论(0) 推荐(0) 编辑
  2012年7月7日
摘要: IOS-特别注意“self.label” 与“label_”的使用,统一并区别。 阅读全文
posted @ 2012-07-07 17:02 tx天翔 阅读(313) 评论(0) 推荐(0) 编辑
  2012年7月5日
摘要: iPad ImagePickerView 拍照中,点击“use”的同时,dismiss popover即消失所在的框,不必再点击其他区域。UIImagePickerController的delegate如下:#pragma mark - UIImagePickerController delegate methods- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInf 阅读全文
posted @ 2012-07-05 14:38 tx天翔 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 退键盘新法:在需要的方法中添加:[self.view endEditing:YES];即可见效。 阅读全文
posted @ 2012-07-05 10:13 tx天翔 阅读(240) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页