码迷,mamicode.com
首页 >  
搜索关键字:nsdictionary    ( 1069个结果
ios 常见错误整理 持续更新
1. mutating method sent to immutable object'从字面上理解:可变的消息发给了不可变的对象。比如NSDictionary类型的对象调用setValue方法.应该把NSDictionary 改成NSMutableDictionary类型。2.Local decl...
分类:移动开发   时间:2014-08-27 18:31:48    阅读次数:189
iOS 改变Search Bar中Scope Button中文本的颜色和字体
- (void)initSearchbar{ self.wineSearchBar.delegate = self; [self.wineSearchBar setScopeBarButtonTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor redColor], NSForegr...
分类:移动开发   时间:2014-08-26 22:59:26    阅读次数:316
NSNumber,NSValue和NSData
我们在编码中,很多时候需要将C里面原生的数据封装成对象,这样可以用NSDictionary或者NSArray来存取访问。尤其是一些做适配的情况下,这种封装是不可避免的。Objective-C提供了不少类可以帮助我们,比较常见的是NSNumber,NSValue和NSData。NSNumber主要是用...
分类:其他好文   时间:2014-08-26 11:15:06    阅读次数:270
计算器的实现代码
#import "AppDelegate.h" @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {     sel...
分类:其他好文   时间:2014-08-24 14:13:32    阅读次数:234
UIActionSheet 传值
#pragma mark - actionSheet- (void)shareOrder:(NSDictionary *)product{ UIActionSheet *as = [[UIActionSheet alloc] initWithTitle:VIMILocalizedString(@"....
分类:其他好文   时间:2014-08-24 14:06:22    阅读次数:225
tabBar用block实现自定义
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] init...
分类:其他好文   时间:2014-08-20 21:05:52    阅读次数:176
对环信的封装--初级
@interface EaseMobProcessor : NSObject+(void) init:(UIApplication *)application launchOptions:(NSDictionary *)launchOptions;+(void) login;+(void) log....
分类:其他好文   时间:2014-08-19 20:48:35    阅读次数:244
NSDictionary常用用法
NSArray*aa=[NSArrayarrayWithObjects:@"11",@"122",nil]; NSLog(@"%@",aa); //里面只有一对键值的字典 NSDictionary*dic1=[NSDictionarydictionaryWithObject:@"2134"forKey:@"id"]; NSLog(@"%@",dic1); //多个键值的字典 NSArray*value=[NSArrayarrayWithObjects:@"2134",@"..
分类:其他好文   时间:2014-08-19 11:08:36    阅读次数:219
Objective-C集合总结
Objective-C里面的集合主要包括:NSString,NSMutableString,NSArray,NSMutableArray,NSDictionary,NSMutableDictionary,本文主要是对这些集合的相关操作做一些基本总结。
分类:其他好文   时间:2014-08-18 23:23:53    阅读次数:395
oc/object-c/ios哪种遍历NSArray/NSDictionary方式快?测试报告
做app的时候,总免不了要多次遍历数组或者字典。究竟哪种遍历方式比较快呢?我做了如下测试:首先定义测试用宏:?123456789#define MULogTimeintervalBegin(INFO) NSTimeInterval start = [NSDate timeIntervalSinceR...
分类:移动开发   时间:2014-08-17 00:57:31    阅读次数:286
1069条   上一页 1 ... 95 96 97 98 99 ... 107 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!