码迷,mamicode.com
首页 >  
搜索关键字:nsinteger nsuinteger nsnumber    ( 1059个结果
UISearchBar 改变编辑去背景颜色
1. 使用此代码改变搜索栏“UITextField将backgroundImage UITextField *searchField; NSUInteger numViews = [searchBar.subviews count]; for(int i = 0; i < numViews; i++) { if([[searchBar.subviews objectAtIndex:i] isK...
分类:其他好文   时间:2015-01-21 11:43:10    阅读次数:181
IOS int NSInteger NSNumber区分
1.NSNumber 是一个类继承于NSValue 即一个基本数据类型的集合 包括chara signed or unsigned char, short int, int, long int, long long int, float, or double or as a BOOLNSNumber...
分类:移动开发   时间:2015-01-19 18:44:02    阅读次数:283
API 常用一览表
stringWithFormat用于返回一个带有格式控制符的字符串,是类方法length:返回一个NSUInteger类型,求字符串长度的值stringByAppendingString:将两个字符串拼接,返回一个新字符串stringByAppendingFormat:将原字符串与给定字符串拼接,给定字符串带有格式控制符,返回一个新字符串sub..
分类:Windows程序   时间:2015-01-17 23:39:01    阅读次数:474
花式ERROR产品样本——OC部分(持续更新)
这个是我们学习OC过程中出现的各种奇怪ERROR,具体ERROR分类还没想好,先做成合集吧。当然 我会尽量回忆学习C时出现的ERROR,也做一个合集。第一个ERRORform:旗木*卡卡西require:定义?个block,返回值为NSInteger,有两个参数,?个是 NSArray,?个是NSS...
分类:其他好文   时间:2015-01-17 12:30:58    阅读次数:199
OC   API库常见之函数(二)
NSMutableArray可变数组//initWithCapacity:创建一个数组//-(instancetype)initWithCapacity:(NSUInteger)numItemsNSMutableArray*array=[[NSMutableArrayalloc]initWithCapacity:1];//1表示刚开始给数组分配一个对象大小的内存,当数组已经有一个对象时,再放一个对象时,数组会..
分类:Windows程序   时间:2015-01-16 17:10:51    阅读次数:386
iOS中UIAlertView的点击响应事件
1:先遵守UIAlertViewDelegate 2:- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{     if (buttonIndex==0) {         NSLog(@"你点击了取消");     }else if (buttonIndex=...
分类:移动开发   时间:2015-01-15 16:05:32    阅读次数:172
iOS特定的一个controller横屏--iOS7
首先在这个viewContoller里面设定只支持横向 //iOS 7 above -(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return UIInterfaceOrientationLandscapeLeft; } - (NSUInteger)supportedInterfaceOri...
分类:移动开发   时间:2015-01-14 12:47:33    阅读次数:111
OC设置器与访问器以及自定义初始化方法
1.Person.h#import<Foundation/Foundation.h>@interfacePerson:NSObject{NSString*_name;NSString*_sex;NSInteger_age;CGFloat_weight;CGFloat_height;}-(void)sayhi;//设置器专门给一个实例变量赋值的方法-(void)setName:(NSString*)name;-(void)setSex:(NSString*)sex;..
分类:其他好文   时间:2015-01-13 01:31:49    阅读次数:161
swift 中String,Int 等类型使用注意,整理中
swfit中的String和Int是 struct定义的,不同于NSString和NSNumber, 如果想在一个数组中同时包含String和Int,那么这个数组要声明为[Any] 而不是 [AnyObject] , 因为他们不是class!另外,与c中的string和int 不同,swfit中的是...
分类:编程语言   时间:2015-01-12 12:51:15    阅读次数:159
ios 让播放视频的 时候能够全屏 目前已经测试很多 可以
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { if ([NSStringFromClass([[[window subviews]lastObject] class]) isEqualToString:@"...
分类:移动开发   时间:2015-01-09 17:26:42    阅读次数:220
1059条   上一页 1 ... 80 81 82 83 84 ... 106 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!