
UI界面
TT不觉
今天天气不错
展开
-
UITextView的placehoder背景文字实现带并限制文字字数
iOS textView 限制字数1.在viewdidload中添加一个默认字体的lableplaceHoderLable = [[UILabel alloc]initWithFrame:CGRectMake(3, 3, DeviceWidth-6, 40)];//根据情况调节位置placeHoderLable.enabled = NO;placeHoderLable.text =原创 2016-07-08 11:25:56 · 553 阅读 · 0 评论 -
iOS点击button60秒倒计时
##在button的点击触发方法里面调用这个- (void)verifyEvent方法就可以实现倒计时- (void)verifyEvent{ //启动倒计时 [selfperformSelector:@selector(reflashGetKeyBt:)withObject:[NSNumbernumberWithInt:60] afte原创 2016-07-08 11:33:07 · 1532 阅读 · 0 评论 -
iOS快速得到视图的width,height,x,y
//// UIView+Extnesion.h// GuiguziFoot//// Created by LANJIE on 16/5/10.// Copyright © 2016年 俞涛涛. All rights reserved.//#import @interface UIView (原创 2016-06-15 11:27:14 · 1194 阅读 · 0 评论 -
iOS扫描二维码方法
- (void)viewDidLoad { [superviewDidLoad];// self.hidesBottomBarWhenPushed=YES; [selfsetupDevice];//扫描二维码地方法}- (void)setupDevice{ //获取摄像设备 AVCapture原创 2016-06-15 11:07:14 · 584 阅读 · 0 评论 -
iOS调用系统电话,UIAlertController的基本使用
NSString *allString = [NSStringstringWithFormat:@"tel:1008611"]; UIAlertController *alertController=[UIAlertControlleralertControllerWithTitle:@"拨打电话"message: allString preferredStyle:(UI原创 2016-06-15 10:36:38 · 1162 阅读 · 0 评论 -
UIlabel 行间距处理
NSString *labelString =@"据冯梦龙比较严肃、真实的历史小说《东周列国志》记述,周之阳城地界,有一个山谷,山深树密,幽不可测,不是人所能居住的地方,所以叫“鬼谷”。谷中居有一位隐者,自号鬼谷子,相传是晋平公时人,姓王名诩"; // 调整行间距 NSMutableAttributedString *attributedString原创 2016-06-15 10:22:15 · 346 阅读 · 0 评论 -
去除 UItableview headerview黏性(sticky)
//去掉UItableview headerview黏性(sticky)- (void)scrollViewDidScroll:(UIScrollView *)scrollView { if (scrollView == self.tableView) { CGFloat sectionHeaderHeight = 49; //这里是headV原创 2016-06-15 10:20:12 · 380 阅读 · 0 评论