效果: collectionView的数据源方法 - (UICollectionViewCell *) collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath ...
分类:
其他好文 时间:
2017-05-06 20:48:33
阅读次数:
160
一、简单介绍 UIActionSheet是IOS提供给我们开发人员的底部弹出菜单控件。一般用于菜单选择、操作确认、删除确认等功能。IOS官方提供的下面方式对UIActionView进行实例化: - (instancetype)initWithTitle:(NSString *)title deleg ...
分类:
移动开发 时间:
2017-05-06 18:56:51
阅读次数:
202
[self convertToJsonData:_editDictionary]; /** 字典转json字符串方法 */ -(NSString *)convertToJsonData:(id)dict { NSError *error; NSData *jsonData = [NSJSONSeri ...
分类:
Web程序 时间:
2017-05-06 15:11:47
阅读次数:
251
-(NSArray *)getdataFromDatabase { NSString *path = [self getDBPath]; NSLog(@"path %@",path); NSLog(@"self.getDBPath == %@",[self getDBPath]); FMDataba ...
分类:
其他好文 时间:
2017-05-04 14:47:01
阅读次数:
241
-(bool)checkDevice:(NSString*)name { NSString* deviceType = [UIDevice currentDevice].model; NSLog(@"deviceType = %@", deviceType); NSRange range = [de ...
分类:
移动开发 时间:
2017-05-02 23:39:57
阅读次数:
209
iOS怎样找到自己的沙盒 在ios开发我们会用到沙盒,因为自己对沙盒理解的不够,所以找不到沙盒文件在哪里,当然要知道路径了 比如我的路径 NSString* cachepath = [NSHomeDirectory()stringByAppendingString:@"Douments"]; ASI ...
分类:
移动开发 时间:
2017-05-02 13:56:42
阅读次数:
215
本文转至:http://www.qingpingshan.com/rjbc/ios/157477.html 引言 Core Foundation框架 (CoreFoundation.framework) 是一组C语言接口,它们为iOS应用程序提供基本数据管理和服务功能。下面列举该框架支持进行管理的数 ...
分类:
移动开发 时间:
2017-05-02 11:56:53
阅读次数:
300
音乐播放 NSString *path = [[NSBundle mainBundle] pathForResource:@"预谋" ofType:@"mp3"]; if (path) { NSURL *url = [NSURL fileURLWithPath:path]; player= [[AV ...
分类:
移动开发 时间:
2017-04-29 12:53:25
阅读次数:
230
1,用gcd延迟运行任务 假设我们须要某个方法在一段时间后运行。那么我们经常会调用这个方案 - (void)viewDidLoad{ [super viewDidLoad]; [self performSelector:@selector(printString:) withObject:@"Gra ...
分类:
其他好文 时间:
2017-04-29 09:47:15
阅读次数:
133
RootViewController.m - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bun ...
分类:
其他好文 时间:
2017-04-27 10:30:13
阅读次数:
137