上一页 1 2 3 4 5 6 7 8 ··· 19 下一页

2015年9月10日

NSarray 赋值 拷贝 等问题记录

摘要: 1.NSArray * a1 = @[@"1",@"2",@"3"];NSArray * a2 = a1;a1跟a2所指向的地址是一样的 NSLog(@"a1:%p a2:%p a1p:%p a2p:%p",&a1,&a2,a1,a2);2.NSArray * a1 = @[@"1",@"2",@"... 阅读全文

posted @ 2015-09-10 15:53 景树园 阅读(704) 评论(0) 推荐(0)

2015年8月12日

UINavigationController 操作记录

摘要: //设置字体大小 颜色 { UIColor *color = [UIColor brownColor]; UIFont * font = [UIFont systemFontOfSize:20]; NSDictionary * dict = [NSDictionary dic... 阅读全文

posted @ 2015-08-12 16:24 景树园 阅读(143) 评论(0) 推荐(0)

2015年7月23日

AutoLayout UITableViewCell 动态高度

摘要: 从这里http://www.cnblogs.com/liandwufan/p/4516956.html?utm_source=tuicool 转载过来的-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPat... 阅读全文

posted @ 2015-07-23 21:56 景树园 阅读(366) 评论(0) 推荐(0)

2015年7月19日

UITextView 不左上角显示

摘要: 在Autolayout中 UITextView显示不左上角显示,修改如下在viewDidLoad里面添加如下代码if([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0){self.automaticallyAdjustsScro... 阅读全文

posted @ 2015-07-19 10:19 景树园 阅读(234) 评论(0) 推荐(0)

2015年7月13日

IOS block 记录

摘要: 1.需要使用@property(....,copy) 而不是其他的2.self.request=[ASIHTTPRequest requestWithURL:[NSURL URLWithString:url]];[_request setRequestMethod:@"GET"];__weakASI... 阅读全文

posted @ 2015-07-13 15:26 景树园 阅读(107) 评论(0) 推荐(0)

2015年7月2日

UIActionSheet 修改字体颜色

摘要: -(void)willPresentActionSheet:(UIActionSheet *)actionSheet{ SEL selector = NSSelectorFromString(@"_alertController"); if ([actionSheet respondsToSel... 阅读全文

posted @ 2015-07-02 17:01 景树园 阅读(751) 评论(0) 推荐(0)

2015年6月27日

IOS release 版本的时候 去掉输出log NSLog

摘要: 在.pch文件中添加下面一段#ifndef __OPTIMIZE__#define NSLog(...) NSLog(__VA_ARGS__)#else#define NSLog(...) {}#endif如何添加 pch 文件,xcode - new file -pch file。 将Preco... 阅读全文

posted @ 2015-06-27 10:12 景树园 阅读(518) 评论(0) 推荐(0)

2015年6月26日

IOS init initWith 等相关集中

摘要: 1.initWithCoder 当一个view从nib初始化的时候,会调用这个函数。 用keyedArchiver序列化一个类的实力,后面用keyedUnArchiver拿回来的时候会调用到2.initialize 这个还是这几天第一次用到,跟平时使用的 init不同。initialize我理解... 阅读全文

posted @ 2015-06-26 10:39 景树园 阅读(195) 评论(0) 推荐(0)

2015年6月20日

IOS UINavigationController 操作相关集合

摘要: 1.修改中间Title字体以及大小 [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: ... 阅读全文

posted @ 2015-06-20 15:44 景树园 阅读(103) 评论(0) 推荐(0)

2015年6月18日

IOS 时间 日历 处理集合

摘要: 1.获得当前时间 从1970开始的秒数NSTimeInterval time = [[NSDate date[ timeIntervalSince1970]];NSString * str = [NSString stringWithFormat:@"%lf",(long long int )tim... 阅读全文

posted @ 2015-06-18 11:22 景树园 阅读(156) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 19 下一页

导航