码迷,mamicode.com
首页 >  
搜索关键字:nsstring    ( 4622个结果
如新闻频道滑动切换的代码
效果: collectionView的数据源方法 - (UICollectionViewCell *) collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath ...
分类:其他好文   时间:2017-05-06 20:48:33    阅读次数:160
IOS开发UI篇--一个支持图文混排的ActionSheet
一、简单介绍 UIActionSheet是IOS提供给我们开发人员的底部弹出菜单控件。一般用于菜单选择、操作确认、删除确认等功能。IOS官方提供的下面方式对UIActionView进行实例化: - (instancetype)initWithTitle:(NSString *)title deleg ...
分类:移动开发   时间:2017-05-06 18:56:51    阅读次数:202
字典转json字符串方法
[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
怎样推断 ios设备的类型(iphone,ipod,ipad)
-(bool)checkDevice:(NSString*)name { NSString* deviceType = [UIDevice currentDevice].model; NSLog(@"deviceType = %@", deviceType); NSRange range = [de ...
分类:移动开发   时间:2017-05-02 23:39:57    阅读次数:209
iOS怎样找到自己的沙盒
iOS怎样找到自己的沙盒 在ios开发我们会用到沙盒,因为自己对沙盒理解的不够,所以找不到沙盒文件在哪里,当然要知道路径了 比如我的路径 NSString* cachepath = [NSHomeDirectory()stringByAppendingString:@"Douments"]; ASI ...
分类:移动开发   时间:2017-05-02 13:56:42    阅读次数:215
iOS开发之__bridge,__bridge_transfer和__bridge_retained
本文转至:http://www.qingpingshan.com/rjbc/ios/157477.html 引言 Core Foundation框架 (CoreFoundation.framework) 是一组C语言接口,它们为iOS应用程序提供基本数据管理和服务功能。下面列举该框架支持进行管理的数 ...
分类:移动开发   时间:2017-05-02 11:56:53    阅读次数:300
iOS 调用音乐播放以及视频播放器
音乐播放 NSString *path = [[NSBundle mainBundle] pathForResource:@"预谋" ofType:@"mp3"]; if (path) { NSURL *url = [NSURL fileURLWithPath:path]; player= [[AV ...
分类:移动开发   时间:2017-04-29 12:53:25    阅读次数:230
GCD部分使用方法
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
4622条   上一页 1 ... 39 40 41 42 43 ... 463 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!