随笔分类 - 视图显示
摘要:1. 声明全局变量 UIView *headView; 表头部View UIButton *financeBtn; //金融头条Btn UIButton *companyNewsBtn;//公司新闻Btn 2.在viewDidLoad里面 - (void)viewDidLoad { [super v
阅读全文
摘要:NSString *textStr = @"系统将于2017年4月20日17~19点间进行升级,在升级期间系统将停止使用,请你提前处理系统中待处理任务。"; NSRange startRange = [textStr rangeOfString:@"于"]; NSRange endRange = [
阅读全文
摘要:- (void)viewWillAppear:(BOOL)animated { //设置导航栏背景图片为一个空的image,这样就透明了 [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init
阅读全文
摘要://初始化textfield并设置位置及大小 //设置边框样式,只有设置了才会显示边框样式 //输入框中是否有个叉号,在什么时候显示,用于一次性删除输入框中的内容 //设置键盘的样式 //return键变成什么键 委托方法 - (void)textFieldEditChanged:(UITextFi
阅读全文
摘要:vc >vc1 >vc2 1,在需要push的地方 vc >vc1 self.hidesBottomBarWhenPushed = YES; ZHMeDetailTableViewController *mdvc = [[ZHMeDetailTableViewController alloc] in
阅读全文
摘要:CollectionView Header And footer 的添加和设置 建议先看CollectionView 第一篇:http://www.jianshu.com/p/a1614404ae96 注册Header 和 Footer //注册区头 [_myCollectionView regis
阅读全文
摘要:然后自定义一个headView 200 就是高度 可以自定义
阅读全文
摘要:新版的SDWebImage 已经计算好文件大小 只需要调用清理就够了 //获取缓存文件大小 float tmpSize = [[SDImageCache sharedImageCache] getSize]; NSString *clearCacheName = [NSString stringWi
阅读全文
摘要:一, UITableViewStyleGrouped _themeTable= [[UITableView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 7
阅读全文
摘要:隐藏多余的分割线swift:self.tableView?.tableFooterView = UIView()oc : self.tableView.tableFooterView = [[UIView alloc] init];隐藏全部的分割线tableView.separatorStyle =
阅读全文
摘要:UIColor *color = [UIColor whiteColor]; _usernameTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"请输入账号" attributes:@{NSF
阅读全文
摘要:在xib拖拽控件的界面给view添加背景 UIImageView *imageView = [[UIImageView alloc]initWithFrame:self.view.bounds]; imageView.image = [UIImage imageNamed:@"51670.jpg"]
阅读全文

浙公网安备 33010602011771号