703
逸創雲客服
逸創雲客服 iOS SDK常見問題FAQ
該文檔主要集中客戶在集成開發iOS SDK過程中遇到的問題,後續會陸續更新。
注:以下SDK未作特殊說明,均指KF5IOSSDK。
問題1:關於修改SDK導航欄樣式的問題
答:
方案一:
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]]; [[UINavigationBar appearance]setBarTintColor:[UIColor blueColor]]; [[UINavigationBar appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor] ,NSForegroundColorAttributeName, nil]];
方案二:
self.navigationController.navigationBar.tintColor = [UIColor whiteColor]; self.navigationController.navigationBar.barTintColor = [UIColor blueColor]; self.navigationController.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor] ,NSForegroundColorAttributeName, nil];
問題2: 推送問題收不到的問題
答:
(1)需要先確定IOS推送服務是否配置正確
(2)推送需要在後台添加推送URL,並開啟推送通知(信息通知推送).
(3)需要確認你們後台的推送URL有沒有收到推送消息
問題3:進入控製器出現崩潰的問題
答:進入Targets->Build Settings->Linking->Other Linker Flags 查看是否填寫-ObjC(注意C為大寫)。
問題4: libopencore-amrnb.a文件衝突的問題
答:如果出現類似下圖的編譯失敗信息,出現的原因是你們APP中也添加了包含錄音amr的庫,可以嚐試將提示中的libopencore-amrnb.a刪除,然後嚐試編譯.
問題5:文檔知識庫需要直接顯示某一個分區下所有分類的處理方法怎麼搞?
答:
KFDocItem *item = [[KFDocItem alloc]init]; item.Id = @"99907"; item.title = @"常見問題"; KFForumListViewController *vc = [[KFForumListViewController alloc] initWithCategory:item]; [self.navigationController pushViewController:vc animated:YES];
item.Id是分類的id,可以直接打開你們的KF5平台的分類列表頁麵獲取(如下圖),或者使用KFDocHttpTool下的相關網絡請求獲取。
直接顯示某個分類下的數據也可以通過類似的方法處理,調用KFPostListViewController實現。
問題6: 關於使用UITabBarViewController+UINavigationController方式時,tabBar隱藏的問題
答: 方案一:
自定義UINavigationController,重寫pushViewController: animated:
-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{ if (self.viewControllers.count > 0) { viewController.hidesBottomBarWhenPushed = YES; } [super pushViewController:viewController animated:animated]; }
方案二:
self.hidesBottomBarWhenPushed = YES; [KFHelpCenter showHelpCenterWithNavController:self.navigationController helpCenterType:KFHelpCenterTypeForum]; self.hidesBottomBarWhenPushed = NO;
最後更新:2017-02-07 22:27:00