assign:用于“纯量类型”(如CGFloat 或 NSInteger等); strong:用于“对象类型”,定义了一种“拥有关系”(owning relationship),为这种属性设置新值时,设置方法会先保留新值,并释放旧值,然后再将新值设置上去; weak:用于“对象类型”,定义了一种“非
分类:
其他好文 时间:
2016-03-18 00:23:45
阅读次数:
203
UITableViewDataSource @required- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;分区一共有多少行- (UITableViewCell *)t
分类:
其他好文 时间:
2016-03-17 21:34:07
阅读次数:
260
翻译过来就是:view1的左側。在,view2的右側。再多10个点,的地方。 附视图的属性和关系的值: typedef NS_ENUM(NSInteger, NSLayoutRelation) { NSLayoutRelationLessThanOrEqual = -1, //小于等于 NSLayo
分类:
其他好文 时间:
2016-03-14 21:38:55
阅读次数:
208
设置segment的显示样式。 typedef NS_ENUM(NSInteger, UISegmentedControlStyle) { UISegmentedControlStylePlain, // large plain 系统默认平板样式 segmentedControl.segme
分类:
其他好文 时间:
2016-03-13 23:51:56
阅读次数:
296
1、全局变量 static NSInteger kImageHeight = 300; #define kImageHeight 300 2、通知中心 开始编辑 UITextViewTextDidBeginEditingNotification 正在更改 UITextViewTextDidChan
分类:
移动开发 时间:
2016-03-13 15:55:52
阅读次数:
181
1 #if __LP64__ || (TARGET_OS_EMBEDDED && !TARGET_OS_IPHONE) || TARGET_OS_WIN32 || NS_BUILD_32_LIKE_64 2 typedef long NSInteger; 3 typedef unsigned lon
分类:
其他好文 时间:
2016-03-12 11:43:02
阅读次数:
171
1.全局变量: @property (nonatomic, assign) BOOL isPicUsed; 2.方法: - (NSInteger)codeLinesWithPath:(NSString *)path{ NSFileManager *fileManaget = [NSFileManag
分类:
其他好文 时间:
2016-03-09 21:03:51
阅读次数:
221
NSInteger转化 NSString类型: [NSString stringWithFormat: @"%d", NSInteger]; NSString转化 NSInteger类型: NSInteger = [NSString intValue];
分类:
其他好文 时间:
2016-03-08 09:23:58
阅读次数:
114
效果图: 简单说下实现思路: 数据传过来之后, 先创建好对应个数的分组头部View, 也就是要在 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section 在这个方法返回的视图..
分类:
其他好文 时间:
2016-03-05 18:59:10
阅读次数:
204
上一篇是讲怎么进行CoreData的基本操作,这一篇是讲NSFetchedResultsController得到CoreData数据怎么与tableView完美结合,和动画操作的实现。 NSFetchedResultsController的结果与tableView的结合 - (NSInteger)n
分类:
移动开发 时间:
2016-03-05 16:22:19
阅读次数:
288