08 2015 档案
摘要:1.打电话- (IBAction)callPhone1:(id)sender { NSURL *url = [NSURL URLWithString:@"tel://18500441739"]; [[UIApplication sharedApplication] openURL:url...
阅读全文
摘要:1.添加约束(系统) a.一个约束(上下左右)+(instancetype)constraintWithItem:(id)view1 attribute:(NSLayoutAttribute)attr1 relatedBy:(NSLayoutRelation)relation toItem:(id)...
阅读全文
摘要:1.本地生成打印源self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"打印" style:(UIBarButtonItemStylePlain) target:self action:@s...
阅读全文
摘要:1.导入框架Security.framework2.编写工具类/* 该工具类只能保存一个用户和密码 *//* service 一般为 bundle ID */@interface GLKeyChainManage : NSObject+(void)save:(NSString *)service...
阅读全文
摘要:1.重写canBecomeFirstResponder ,并返回YES-(BOOL)canBecomeFirstResponder{ return YES;}2.重写UIResponder的三个方法-(void)motionBegan:(UIEventSubtype)motion withEv...
阅读全文
摘要:1.获取设备信息 NSLog(@"设备名称:%@",[[UIDevice currentDevice] systemName]); NSLog(@"版本号:%@",[[UIDevice currentDevice] systemVersion]); NSLog(@"设备名:%@",...
阅读全文

浙公网安备 33010602011771号