08 2014 档案
摘要:- (void)tableView: (UITableView*)tableView willDisplayCell: (UITableViewCell*)cell forRowAtIndexPath: (NSIndexPath*)indexPath{ cell.backgroundColor...
阅读全文
摘要:-(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{ return UITableViewCellEdit...
阅读全文
摘要:转载:源地址 http://www.cnblogs.com/wendingding/p/3763527.html一、实现效果实现图片的自动轮播 二、实现代码storyboard中布局代码: 1 #import "YYViewController.h" 2 3 @interface YY...
阅读全文
摘要:在appdelegate中添加以下代码:if (![[NSUserDefaults standardUserDefaults] boolForKey:@"firstStart"]) { NSLog(@"第一次"); [[NSUserDefaults standardUserDef...
阅读全文
摘要:作用:NSNotificationCenter是专门供程序中不同类间的消息通信而设置的.注册通知:即要在什么地方接受消息[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(mytest:)name:@" myt...
阅读全文
摘要://初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)];//设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UI...
阅读全文
摘要:iPhone和iPad下各种常见控件的宽度和标准是一样的,所以这里就用iPhone说明。以下是常见的几种控件的高度。Statusbar,Navigationbar和Tabbar的宽度极其图标大小。下表是更为详细的参数,包括了Statusbar,Navigationbar、Tabbar、toolbar...
阅读全文