- 博客(7)
- 资源 (4)
- 收藏
- 关注
原创 swift 修改navigationItem.title的颜色
let dict:NSDictionary = NSDictionary(object: UIColor.orangeColor(),forKey:NSForegroundColorAttributeName)navigationBar.titleTextAttributes = dict as? [String : AnyObject]用titleTextAttributes 修改navi
2016-07-21 15:33:04 1180
原创 UIAlertController在Swift中的用法
let alert:UIAlertController = UIAlertController(title: "message" ,message: "Thank you clicking",preferredStyle: UIAlertControllerStyle.Alert) alert.addAction(UIAlertAction(title: "close AlertView"
2016-07-03 00:02:26 306
原创 Swift下隐藏navigationBar下面那天横线
说实话Google了一大圈,最后还是在Stack Overflow上找到了自己想要的答案,但是在swift里面还像没有imageWithColor方法,只能自定义了下面是代码func shadowImageLine() -> Void { self.navigationController?.navigationBar .setBackgroundImage(imageWi
2016-06-19 02:13:29 962
原创 单例传值(三个界面)
1,在Appdelegate.m文件中创建根视图控制器ViewController * vc = [[ViewController alloc]init]; UINavigationController * nvc = [[UINavigationController alloc]initWithRootViewController:vc]; self.window.rootV
2015-05-16 10:03:14 412
原创 iOS开发表格的复用机制
// 这个方法的模板- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ //cell的标示符 // 以后表格中可能有不同样式的cell, 区分样式的cell static NSString *cellID = @"cell
2015-04-23 13:05:45 492
原创 在iOS开发中关于正向传值的问题
两个输入框和一个按钮 _TextFiled = [[UITextField alloc]init]; _TextFiled.frame = CGRectMake(0, 100, 320, 50); _TextFiled.textColor = [UIColor redColor]; _TextFiled.borderStyle = UITextBorderStyleRou
2015-04-19 11:44:24 524
原创 iOS中输入框被软键盘遮挡了怎么办?
看这个博客对于iOS中输入框被软键盘遮挡的回答,http://blog.csdn.net/enuola/article/details/7917221,感觉还是挺麻烦的,于是继续Google中,查到可以移动输入框来避免被键盘遮挡这一办法,于是自己试了试,真的蛮简单的,下面开始:新建工程 Single view application 在ViewController.h
2015-04-18 19:18:19 522
UITableViewCell根据文字自动改变cell和lable的高度
2016-03-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人