Here is code.
var item = self.tabBarController?.tabBar.items?[1] as! UITabBarItem
This causes error like this. "Downcast from 'UITabBarItem?" to 'UITabBarItem' only unwraps optionals; did you men to use '!'?"
And Redundant error. Here is code
class PrivateViewController: UITableViewController, UITableViewDelegate, UITableViewDataSource, UIActionSheetDelegate, MFMailComposeViewControllerDelegate, MFMessageComposeViewControllerDelegate {}
This causes error like this. "Dedundant conformance of 'PrivateViewController' to protocal 'UITableViewDataSource" Anybody who knows solution?