摘要: uitextfield获取中文: 阅读全文
posted @ 2016-09-14 09:15 新年新气象 阅读(193) 评论(0) 推荐(0)
摘要: // // AboutKeyBoardEventViewController.m // QueryBussinessInfo // // Created by mac on 16/8/23. // Copyright © 2016年 cqytjr. All rights reserved. // #import "AboutKeyBoardEventViewController.h" ... 阅读全文
posted @ 2016-09-13 14:50 新年新气象 阅读(292) 评论(0) 推荐(0)
摘要: //添加一个长按响应方法 - (void)addLongPressGestureRecognizer { UILongPressGestureRecognizer * longPress = [[UILongPressGestureRecognizer alloc ]initWithTarget:s 阅读全文
posted @ 2016-09-13 11:56 新年新气象 阅读(139) 评论(0) 推荐(0)
摘要: - (void)willPresentAlertView:(UIAlertView *)alertView { 在这个方法中, 绘制需要的东西 uiview *myView = [uiview alloc] init alertView addsubview:myview } 方法二、 自定义一个a 阅读全文
posted @ 2016-09-08 16:01 新年新气象 阅读(367) 评论(0) 推荐(0)
摘要: if (!dic) { dic = @{@"402791":@"工商银行",@"427028":@"工商银行",@"427038":@"工商银行",@"548259":@"工商银行",@"620200":@"工商银行",@"620302":@"工商银行",@"620402":@"工商银行",@"62 阅读全文
posted @ 2016-08-24 09:10 新年新气象 阅读(817) 评论(0) 推荐(0)
摘要: UIUserNotificationSettings *setting = [[UIApplication sharedApplication] currentUserNotificationSettings]; UIUserNotificationTypeNone != setting.types 阅读全文
posted @ 2016-08-16 16:23 新年新气象 阅读(188) 评论(0) 推荐(0)
摘要: 之前文本整理有一点乱,这边重新整理一下,下面是效果图,一共两个UILabel, 富文本整理: 源码展示: NSMutableParagraphStyle用法整理: 获取富文本的高度和普通label的高度一样: 注意事项:我们设置NSMutableParagraphStyle的lineSpacing可 阅读全文
posted @ 2016-08-03 13:49 新年新气象 阅读(2334) 评论(0) 推荐(0)
摘要: 方法1: 方法2: 阅读全文
posted @ 2016-08-01 12:05 新年新气象 阅读(2118) 评论(0) 推荐(0)
摘要: //第一个坐标 CLLocation *before=[[CLLocation alloc] initWithLatitude:29.553968 longitude:106.538872]; //第二个坐标 CLLocation *current=[[CLLocation alloc] initW 阅读全文
posted @ 2016-07-27 10:06 新年新气象 阅读(842) 评论(0) 推荐(0)
摘要: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { // 1.创建请求 NSURL *url = [NSURL URLWithString:@"http://127.0.0.1:8080/YYServer/video"]; NSMutableURLRequest *request = [NS... 阅读全文
posted @ 2016-07-25 12:54 新年新气象 阅读(147) 评论(0) 推荐(0)