NSMutableArray *userList = [userDefaults objectForKey:@"userList"]; if(userList){ if(![use…
//tableview没有数据的时候不显示线 _tableView.tableFooterView = [[UIView alloc] init];
- (void)viewDidLoad{ ... // 1.通知中心添加观察者,监听键盘是否弹出 [[NSNotificationCenter defaultCenter]addO…
self.navigationController.interactivePopGestureRecognizer.enabled = YES; 这个api功能就是在Navigat…
原谅我,写这样的标题,其实是想引起您的注意,这是几个框架的开篇,还没写完,请持续关注!谢谢 使用说明请看:https://github.com/nsdictionary/CoreF…
注意:本篇文章采用了IOS7的新特性来扫二维码,所以系统支持要IOS7以上,如果要兼容IOS7之前的版本,自行找库来支持。 为了方便,我把扫二维码简单封装到了一个UIView中,用…
#import "wangmumu.h" @interface wangmumu () { } @end static char staticString; @implementa…
NSIndexPath *index = [NSIndexPath indexPathForRow:1 inSection:0]; //插入某一行 [self.tableView …
-(void)buttonClick { NSString *url = @"http://api.k780.com:88/?app=weather.future&weai…
在一些应用中,我们需要用到iOS设备的摄像头进行拍照,视频。并且从相册中选取我们需要的图片或者视频。 关于iOS摄像头和相册的应用,可以使用UIImagePickerControl…
一:正则表达式再用 #pragma 正则匹配手机号 + (BOOL)checkTelNumber:(NSString *) telNumber { NSString *patter…
OSMessage *msg=[[OSMessage alloc] init]; msg.title=@"Hello World"; //分享到微信 [OpenShare shar…