本文主要是介绍从零开始学习iOS开发-股票记帐本1.0(4),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
13. 点击空处,收回键盘
1)点击UIView收回键盘
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{[self.nameOfStock resignFirstResponder];[self.buyNumber resignFirstResponder];[self.buyPrice resignFirstResponder];[self.numberOfStock resignFirstResponder];[self.buyFee resignFirstResponder];
}
2)点击tableview收回键盘
参考http://blog.chinaunix.net/uid-29088748-id-4015787.html
-(void)dismissKeyBoard{[self.numberOfSell resignFirstResponder];[self.priceOfSell resignFirstResponder];[self.feeOfSell resignFirstResponder];
}
在viewDidLoad中添加
UITapGestureRecognizer * tapGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(dismissKeyBoard)];
[self.tableView addGestureRecognizer:tapGesture];
14. 设置导航栏颜色
[[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:0/255.0 green:127/255.0 blue:236/255.0 alpha:1.0]];[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}]; [[UINavigationBar appearance] setTintColor:[UIColor whiteColor]]; [[UINavigationBar appearance] setBarStyle:UIBarStyleBlack];//设置状态栏颜色
15. git误删恢复
用git fsck –lost-found命令找出刚才删除的分支里面的提交对象。
使用git rebase命令来恢复
参考
http://hubingforever.blog.163.com/blog/static/17104057920124277584540/
16. 设置启动画面
1、在launchImage中添加启动画面
2、general-launch Image Source改为launchImage,并清空launch screen File
参考
http://blog.csdn.net/yqmfly/article/details/43525397
http://www.cnblogs.com/w413133157/p/4337516.html
17. 二十、清除Xcode7 中 directory not found for option ‘xxxx’ 警告
参考
http://www.cnblogs.com/YouXianMing/p/4826761.html
18. 发布过程
参考
http://my.oschina.net/joanfen/blog/133642
http://blog.csdn.net/mad1989/article/details/8167529
这篇关于从零开始学习iOS开发-股票记帐本1.0(4)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!