iOS工作問題記錄

PS:記錄自己工作學習中的一些知識;

一、項目中使用的三方庫

1、iOS

引導頁

Onboard同時支持object-C、swift

HcdGuideView簡單點的

HTML解析庫

Objective-C-HMTL-Parser
hpple

圖片

SDWebImage

UITableVIewCell高度自適應(yīng)

UITableView-FDTemplateLayoutCell

二、工作中遇到的問題記錄

IOS開發(fā)

1、項目中如何單獨設(shè)置某個ViewController屏幕自動旋轉(zhuǎn)

[iOS]代碼控制APP中視圖橫屏/豎屏切換

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,

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容