PS:記錄自己工作學習中的一些知識;
一、項目中使用的三方庫
1、iOS
引導頁
Onboard同時支持object-C、swift
HcdGuideView簡單點的
HTML解析庫
圖片
UITableVIewCell高度自適應(yīng)
UITableView-FDTemplateLayoutCell
二、工作中遇到的問題記錄
IOS開發(fā)
1、項目中如何單獨設(shè)置某個ViewController屏幕自動旋轉(zhuǎn)
2、UIScrollView子UIViewController中按鈕事件無響應(yīng)
例如:
在UIScrollView中添加2個子視圖
[self.view addSubview:UIViewController1.view];
[self.view addSubview:UIViewController2.view];
當在UIViewController1中添加UIbutton,UIbutton的時間并不能被點擊相應(yīng),是由于touch事件被UIScrollView劫持了,所以只需下面這樣做,將控制器交給self.vew的子視圖就可以了。
[self addChildViewController:UIViewController1];
[self addChildViewController:UIViewController2];
3、關(guān)于iOS7以后有關(guān)translucent以及UIScrollView子視圖偏移64像素問題
http://blog.csdn.net/G_eorge/article/details/51144017
http://blog.csdn.net/jeffasd/article/details/50738752
https://segmentfault.com/a/1190000002936987
4、UITableView中當數(shù)據(jù)未能滿屏顯示時,不顯示多余分割線
self.tableVIew.tableFooterView = [[UIView alloc]init];
5、UITableView中如何頂格顯示分割線
(1)
self.tableVIew.separatorInset = UIEdgeInsetsZero
(2)
if ([self.tableVIew respondsToSelector:@selector(setSeparatorInset:)]) {
[self.tableVIew setSeparatorInset:UIEdgeInsetsMake(0, 0, 0, 0)];
}
6、iOS9 以上網(wǎng)絡(luò)支持HTTPS,在info.plist中添加
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
7、獲取當前顯示的ViewController
http://www.itdecent.cn/p/f2210f5f7172
如果根視圖是UITabBarController
UITabBarController *tabBarVc = (UITabBarController *)self.window.rootViewController;
UINavigationController *nav = tabBarVc.selectedViewController;
8 、IQKeyboardManager “Done”的修改為”完成”
直接修改項目plist文件的Localization native development region為China,