@autoreleasepool-内存的分配与释放
摘要:http://tutuge.me/2015/03/17/what-is-autoreleasepool/ 前言 开发过iOS、Mac的朋友应该对“@autoreleasepool”不陌生。只要在Xcode里创建一个工程,就能看到下面这样的代码: 1234567891011121314 //iOS p
阅读全文
使用extern代替#define
摘要:#import "WDInspectableProperties.h" #import <Foundation/Foundation.h> extern NSString *WDFontNameProperty; extern NSString *WDFontSizeProperty; extern
阅读全文
自定义iOS7导航栏背景,标题和返回按钮文字颜色
摘要:http://blog.csdn.net/mad1989/article/details/41516743
阅读全文
设置iOS 的背景颜色
摘要:- (void)customizeInterface { //设置Nav的背景色和title色 UINavigationBar *navigationBarAppearance = [UINavigationBar appearance]; [navigationBarAppear...
阅读全文
时间与日期处理
摘要:http://www.cnblogs.com/wayne23/archive/2013/03/25/2981009.html2.采用NSDate+Helper.h分类处理时间问题NSDate+Helper.h文件内容#import @interface NSDate (Helper)- (NSStr...
阅读全文
UITextField how to disable the paste?(UITextField 禁止粘贴)
摘要:overrides thecanPerformAction:withSender:method to returnNOfor actions that you don't want to allow:- (BOOL)canPerformAction:(SEL)action withSender:(i...
阅读全文
UIMenuController不显示的解决办法
摘要:- (void)pressme:(id)sender{ [self becomeFirstResponder]; // 用于UIMenuController显示,缺一不可 UIMenuItem *flag = [[UIMenuItem alloc] initWithTitle:@"拷贝"...
阅读全文
长按弹出菜单
摘要:UIMenuController *menu = [UIMenuController sharedMenuController]; [menu setMenuItems:menuItems]; [menu setTargetRect:self.frame inView:s...
阅读全文
截取webView里面的图片,并且保持
摘要:#pragma mark - ******************** 将发出通知时调用- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UI...
阅读全文
添加分割线的方法
摘要:1.采用透明度//添加分割线- (void)addLineWith:(UIView *)line{ line.backgroundColor = [UIColor blueColor]; line.alpha = 1.0; [self.bottomView addSubview:l...
阅读全文
ios,Xcode6以后添加.pch文件
摘要:1.新建.pch文件 文件名任意 xx。添加到项目中。2.选中target,搜索pref看到屏幕快照 2015-06-29 下午1.49.07.png双击后面输入:$(SRCROOT)/项目名/xx.pch
阅读全文
iOS开发NSLog不打印设置
摘要:http://www.jianshu.com/p/594ef5e06c2f在release版本禁止输出NSLog内容因为NSLog的输出还是比较消耗系统资源的,而且输出的数据也可能会暴露出App里的保密数据,所以发布正式版时需要把这些输出全部屏蔽掉。我们可以在发布版本前先把所有NSLog语句注释掉,...
阅读全文
返回传入veiw的所有层级结构
摘要:/ 应用程序获取焦点(代表着可以和用户交互)- (void)applicationDidBecomeActive:(UIApplication *)application{ NSLog(@"applicationDidBecomeActive"); UINavigatio...
阅读全文
iOS开发-Xcode Debug、Release、Archive、Profile、Analyze概念解释
摘要:http://blog.csdn.net/mad1989/article/details/406580331,Debug和Release版本区别?众所周知,我们进行iOS开发,在Xcode调试程序时,分为两种方式,Debug和Release,在Target的Setting中相信大家应该看到很多选项都...
阅读全文
iOS开发笔记(IOS7回归)
摘要:http://blog.csdn.net/mad1989/article/details/401886231,iOS中如何设置项目/文件是否支持ARC2,iOS设备的硬件适配 (关于armv6, armv7, armv7s )3,关于Build Active Architecture Only属性4...
阅读全文
ios开发学习笔记(这里一定有你想要的东西,全部免费
摘要:http://blog.csdn.net/mad1989/article/details/79726121,Search Bar 怎样去掉背景的颜色(storyboard里只能设置background颜色,可是发现clear Color无法使用)2,NSDate使用3,UTTabviewCell 未...
阅读全文