码迷,mamicode.com
首页 >  
搜索关键字:nsinteger nsuinteger nsnumber    ( 1059个结果
IOS 关于 NSUserDefault
转载并不是所有的东西都能往里放的。NSUserDefaults只支持: NSString, NSNumber, NSDate, NSArray, NSDictionary.NSUserDefaults的方法中用来记录一下永久保留的数据非常方便,不需要读写文件,而是保留到一个NSDictionary字...
分类:移动开发   时间:2014-12-09 15:28:43    阅读次数:239
Objective-c 单例模式
用GCD写Objective-c的单例模式和C#有比较大的区别 声明h文件 #import @interface me : NSObject @property (nonatomic) NSInteger age; +(instancetype)makeme; @end instancetype和i...
分类:其他好文   时间:2014-12-08 17:21:11    阅读次数:242
tableview小结-初学者的问题
初学者的问题主要集中在,下面几个问题:一、几个函数总是不被调用:例如:[objc]view plaincopy-(UIView*)tableView:(UITableView*)tableViewviewForHeaderInSection:(NSInteger)section;这个代理不被调用的种...
分类:其他好文   时间:2014-12-07 22:54:24    阅读次数:290
遇到的类和方法
框架:Core FoundationCFGetRetainCount、类:NSRunLoop、NSAutoreleasePool、NSStringFormClass、UIApplicationMain、NSUInteger、NSObject、CFMutableArrayRef、CFBridgingR...
分类:其他好文   时间:2014-12-07 09:01:54    阅读次数:162
iOS中的屏幕旋转
2种方法 应用级别控制 - (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { return UIInterfaceOrientationMaskAll; } 视图控制器控制 //iOS 6- -...
分类:移动开发   时间:2014-12-06 15:31:11    阅读次数:193
JsonKit在64位下crash问题
我解析Json用的是JsonKit这个库。最近碰到一个问题,当我解析int类型的NSNumber对象时,crash。仔细分析JsonKit的代码,发现是由于解析时分配了32位的缓冲区造成的。当设备是64位时,int类型自动转为64位...
分类:Web程序   时间:2014-12-06 14:12:43    阅读次数:170
UI进阶之UIPickerView---点餐系统
一:数据源方法/** 数据源协议,所有方法都必须实现 */@protocol UIPickerViewDataSource@required// 返回要显示的列数- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerVie...
分类:其他好文   时间:2014-12-05 22:36:06    阅读次数:283
UILabel 调整行间距计算frame
+(UILabel*)getLabelFrame:(UILabel*)labelwithLineSpace:(NSInteger)lineSpacewithAttributedString:(NSString*)string{[labelsetNumberOfLines:0];NSMutableAttributedString*attributedString=[[NSMutableAttributedStringalloc]initWithString:string];NSMutableParagraphS..
分类:其他好文   时间:2014-12-04 15:59:52    阅读次数:178
iOS开发学习之#提醒处理#(2)响应动作表单
在动作表单中我们用很多按钮实现,在这里我们用到了UIActionsheetDelegate协议中的actionSheet:clickedButtonAtIndex:方法实现,其语法形式如下: - (void)actionSheet:(UIActionSheet*)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex; 其中,(UIAct...
分类:移动开发   时间:2014-12-04 14:03:20    阅读次数:226
ios某个控制器强制横竖屏
在控制器的 .m 中实现-(NSUInteger)supportedInterfaceOrientations{ return UIInterfaceOrientationMaskPortrait; //(竖屏)}UIInterfaceOrientationMaskLandscape //(...
分类:移动开发   时间:2014-12-04 11:45:07    阅读次数:194
1059条   上一页 1 ... 85 86 87 88 89 ... 106 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!