08 2015 档案

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