摘要: UITapGestureRecognizer – “轻击”手势。可以配置为“单击”和“连击”的识别。 UIPinchGestureRecognizer –“捏合”手势。该手势通常用于缩放视图或改变可视组件的大小。 UIPanGestureRecognizer – “平移”手势。识别拖拽或移动动作。 阅读全文
posted @ 2017-04-10 11:39 我叫小小虎 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 ,按钮上面添加标题和图片 UIButton *addButton = [UIButton buttonWithType:UIButtonTypeCustom]; addButton.frame = CGRectMake(10, 0, 80, 40); [addButton setImage:[U 阅读全文
posted @ 2017-04-10 11:30 我叫小小虎 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: vc >vc1 >vc2 1,在需要push的地方 vc >vc1 self.hidesBottomBarWhenPushed = YES; ZHMeDetailTableViewController *mdvc = [[ZHMeDetailTableViewController alloc] in 阅读全文
posted @ 2017-03-16 11:42 我叫小小虎 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 首先导入 #import <JavaScriptCore/JavaScriptCore.h> 声明 对象 @property (nonatomic, strong) JSContext *context; 1, oc调用js的方法并获取参数 - (void)webViewDidFinishLoad: 阅读全文
posted @ 2017-03-01 11:21 我叫小小虎 阅读(176) 评论(0) 推荐(0) 编辑
摘要: //创建imageview UIImageView *headImage = [[UIImageView alloc]initWithFrame: CGRectMake(30, 43, 60, 60)]; headImage.image = [UIImage imageNamed:@"bg_me_t 阅读全文
posted @ 2017-02-07 09:58 我叫小小虎 阅读(5125) 评论(0) 推荐(0) 编辑
摘要: 解决方法:打开手机 设置--> 通用 --> 辅助功能 --> 按钮形状 关掉就OK了 阅读全文
posted @ 2016-12-02 10:42 我叫小小虎 阅读(509) 评论(0) 推荐(0) 编辑
摘要: CollectionView Header And footer 的添加和设置 建议先看CollectionView 第一篇:http://www.jianshu.com/p/a1614404ae96 注册Header 和 Footer //注册区头 [_myCollectionView regis 阅读全文
posted @ 2016-11-26 18:03 我叫小小虎 阅读(3331) 评论(0) 推荐(0) 编辑
摘要: 然后自定义一个headView 200 就是高度 可以自定义 阅读全文
posted @ 2016-09-26 14:38 我叫小小虎 阅读(4024) 评论(0) 推荐(0) 编辑
摘要: 新版的SDWebImage 已经计算好文件大小 只需要调用清理就够了 //获取缓存文件大小 float tmpSize = [[SDImageCache sharedImageCache] getSize]; NSString *clearCacheName = [NSString stringWi 阅读全文
posted @ 2016-09-26 14:26 我叫小小虎 阅读(1172) 评论(0) 推荐(0) 编辑
摘要: 一, UITableViewStyleGrouped _themeTable= [[UITableView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 7 阅读全文
posted @ 2016-07-05 11:48 我叫小小虎 阅读(12141) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-07-04 15:36 我叫小小虎 阅读(260) 评论(1) 推荐(0) 编辑
摘要: 隐藏多余的分割线swift:self.tableView?.tableFooterView = UIView()oc : self.tableView.tableFooterView = [[UIView alloc] init];隐藏全部的分割线tableView.separatorStyle = 阅读全文
posted @ 2016-07-04 15:30 我叫小小虎 阅读(401) 评论(0) 推荐(0) 编辑
摘要: UIColor *color = [UIColor whiteColor]; _usernameTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"请输入账号" attributes:@{NSF 阅读全文
posted @ 2016-06-02 11:41 我叫小小虎 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 在xib拖拽控件的界面给view添加背景 UIImageView *imageView = [[UIImageView alloc]initWithFrame:self.view.bounds]; imageView.image = [UIImage imageNamed:@"51670.jpg"] 阅读全文
posted @ 2016-05-31 14:20 我叫小小虎 阅读(395) 评论(0) 推荐(0) 编辑
摘要: -(void)viewDidload { //创建通知 监听键盘的变化 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillCh 阅读全文
posted @ 2016-05-12 11:17 我叫小小虎 阅读(250) 评论(0) 推荐(0) 编辑