摘要:
注释:要引入MessageUI.framework库#import "ViewController.h"#import @interface ViewController ()@property (strong, nonatomic) UIWebView *webView;@end@implemen... 阅读全文
摘要:
注释dateFormate yyyy:年 MM:月 dd:日 HH:24小时 hh:12小时 mm:分钟 ss:秒钟 Z:时区1.解决获取NSDate的时间不对NSDate *nowDate = [NSDate date]; NSTimeZone *localTimeZone = [NS... 阅读全文
摘要:
if (self = [super init])=======》if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) =======》- (void)viewDidLoad{ [super viewDidLoad... 阅读全文
摘要:
网址:http://m.blog.csdn.net/blog/xuexixiaoshizhe/37741239 阅读全文
摘要:
开发ios程序时调试的好帮手---NSAssert()函数。而且和NSLog()函数一样简单易用,代码如下:NSAssert(x!=0,@"x must not be zero");在表达式“x!=0”不成立时,程序就会抛出异常,并显示自定义的消息"x must not be zero",并同时显示... 阅读全文
摘要:
在iOS7中,新增加了一个小小的功能,也就是这个self.navigationController.interactivePopGestureRecognizer。1.情景概况:在UINavigationController自定义返回按钮后无法实现手势右滑到上一级界面。2.解决方案:self.nav... 阅读全文