效果如下:ViewController.h1 #import 2 3 @interface ViewController : UITableViewController4 @property (strong, nonatomic) NSArray *arrFontName;5 @property (...
分类:
其他好文 时间:
2015-06-16 20:56:42
阅读次数:
157
效果如下:ViewController.h1 #import 2 3 @interface ViewController : UITableViewController4 @property (strong, nonatomic) NSArray *arrDataSource;5 @property...
分类:
其他好文 时间:
2015-06-16 16:24:03
阅读次数:
197
效果如下:ViewController.h1 #import 2 3 @interface ViewController : UITableViewController4 @property (strong, nonatomic) NSArray *arrSection;5 @property (s...
分类:
其他好文 时间:
2015-06-16 16:22:24
阅读次数:
100
效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 @property (strong, nonatomic) NSArray *arrColorName;5 6 @endViewContr...
分类:
其他好文 时间:
2015-06-15 21:59:29
阅读次数:
126
- (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay inModes:(NSArray *)modes;- (void)performSelector:(SE...
分类:
其他好文 时间:
2015-06-15 18:07:57
阅读次数:
108
效果如下:ViewController.h1 #import 2 3 @interface ViewController : UITableViewController4 @property (strong, nonatomic) NSArray *arrColor;5 6 - (id)initWi...
分类:
其他好文 时间:
2015-06-15 12:41:31
阅读次数:
107
相同点:都可以作为方法的返回类型不同点:instancetype可以返回和方法所在类相同类型的对象,id只能返回未知类型的对象instancetype只能作为返回值,不能像id那样作为方法的参数好处:能够确定对象的类型,能够帮助编译器更好的为我们定位代码书写问题[[[NSArray alloc] i...
分类:
其他好文 时间:
2015-06-15 11:00:53
阅读次数:
124
一.数组:1.数组初始化:a.NSArray *array = [[NSArray alloc] init];b.NSArray *array = [[NSArray array];2.初始化一个可以数组并同时添加元素:NSArray *array = @[@“”,@“”,@“”];3.取除数组中得...
分类:
编程语言 时间:
2015-06-14 18:13:24
阅读次数:
105
iOS实现tableView下拉搜索功能地址:github地址效果展示JRSearchBar/// 搜索 -> array
- (NSMutableArray *)searchTest:(NSString *)searchText InArray:(NSArray *)array;...
分类:
移动开发 时间:
2015-06-14 12:27:53
阅读次数:
183
采用这个方法UIImageWriteToSavedPhotosAlbum将大量图片保存到模拟器 ? NSArray *strFileArr = [[NSBundle mainBundle] URLsForResourcesWithExtension:@"jpg" subdirectory:nil]; ?? ? ? ? for (int i = 0...
分类:
其他好文 时间:
2015-06-13 18:53:09
阅读次数:
157