码迷,mamicode.com
首页 >  
搜索关键字:nsdictionary    ( 1069个结果
推送消息,程序正在运行的时候弹出弹框问题解决
在这个方法里面处理获取的远程推送消息- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void ...
分类:其他好文   时间:2016-01-19 14:08:16    阅读次数:120
iOS网络-AFNetworking基本使用,文件下载,上传
发送GET请求-(void)get{ //1.创建会话管理者 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; NSDictionary *dictM = @{ ...
分类:移动开发   时间:2016-01-19 00:04:13    阅读次数:591
遍历字典数组集合
1 NSArray *cityArray = [NSArray arrayWithObjects:@"中国北京",@"中国郑州",@"中国洛阳",@"中国杭州",@"中国香港",@"中国台湾", nil]; 2 NSDictionary *personInforDic = [N...
分类:编程语言   时间:2016-01-18 10:24:22    阅读次数:248
遍历集合,数组和字典
1、字典的遍历NSDictionary *dict = @{@"name": @"luoguankun",@"address":@"北京"};//通过for循环遍历NSDictionary,不推荐NSArray *keys = [dict allKeys];for (int i = 0; i < ....
分类:编程语言   时间:2016-01-16 22:27:16    阅读次数:291
ios 写项目的时候遇到的问题及解决方案(2)
11.自适应文本高度1 NSDictionary *attributes = @{NSFontAttributeName: [UIFont systemFontOfSize:14]};2 3 CGRect rect = [text boundingRectWithSize:CGSizeMake(Vi...
分类:移动开发   时间:2016-01-14 18:57:38    阅读次数:493
AppDelegate中的方法解析
// 当应用程序启动完毕的时候就会调用(系统自动调用)-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;// 即将失去活动状态的时候调...
分类:移动开发   时间:2016-01-13 17:37:55    阅读次数:135
NSDictionary
NSDictionary1、字典的初始化:NSDictionary *dict = [NSDictionary dictionaryWithObject:@"v" forKey:@"k"];//NSDictionary是不可变字典,dictionaryWithObject: forKey:方法用于给...
分类:其他好文   时间:2016-01-12 19:34:27    阅读次数:188
使用搜索栏过滤collectionView(按照首字母)
1.解析json数据NSDictionary *citiesDic = [CoreJSONSerialization coreJSONSerialization:@"cities"];NSDictionary *infor = [citiesDic objectForKey:@"infor"];NS...
分类:其他好文   时间:2016-01-12 19:20:52    阅读次数:193
oc字典放入到数组里,根据字典里的属性排序(重点)
#import int main(int argc, const char * argv[]) { @autoreleasepool {NSDictionary *dic1=@{@"name":@"小阳", @"class":@"IOS8", @"age":@"...
分类:编程语言   时间:2016-01-11 20:04:58    阅读次数:2661
oc字典
#import int main(int argc, const char * argv[]) { @autoreleasepool { NSNumber *num=[NSNumber numberWithInt:100]; NSDictionary *dic=[NSDictionary...
分类:其他好文   时间:2016-01-11 18:14:01    阅读次数:155
1069条   上一页 1 ... 26 27 28 29 30 ... 107 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!