swift BUG

swiftBUG

1.required init?(coder aDecoder: NSCoder){

fatalError("init(coder:)has not been implemented")

}

}

/Users/apple/Desktop/资料/01项目第十一天/WeiboClassFive/WeiboClassFive/class/View(视图和控制器)/Compose(发微博)/EmotionKeyBoard/EmotionToolBar.swift:48:14: Failable initializer 'init(coder:)' cannot override a non-failable initializer

解决:去掉问号

required init(coder aDecoder: NSCoder){

fatalError("init(coder:)has not been implemented")

}

}

2.

[!]Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`.  You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.是由于我装了多个Xcode导致路径变了,

解决:hwjdeMacBook-Pro:IJiaXiao_JiaoLian hwj$ sudo xcode-select -switch /Applications/Xcode6.3.1/Xcode.app

3.代理用逗号链接继承的类

class RecordViewController: UIViewController,LFLiveSessionDelegate{

4.appdelegate

dict[NSLocalizedDescriptionKey]= "Failed to initialize the application's saved data" as AnyObject?

dict[NSLocalizedFailureReasonErrorKey]= failureReason as AnyObject?

5.detailView

5.实现代理方法

extension RecordViewController : LFLiveSessionDelegate {

/*实现协议所规定的内容*/

}

6.

Segmentation fault: 11 swift

解决:删除masterView

7.storyboard画圆角

8.跳转隐藏tabBar

composeNav.hidesBottomBarWhenPushed = YES;

NextViewController *next=[[NextViewController alloc]init];

[self.navigationController pushViewController:next animated:YES];

self.hidesBottomBarWhenPushed=NO;

9.跳转隐藏NavigationBar

10.使用第三方框架或者pod,需要桥接文件kaixin01/kaixin01-Bridging-Header.h还有拖入.h和.m文件到项目中

11.枚举元素的限制不能被引用作为实例成员swift?????????????????

audioSession == AVAuthorizationStatus.restricted || audioSession == AVAuthorizationStatus.authorized

12.instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?

解决:init storyBoard

13.One of the two will be used. Which one is undefined.

文件重复

你可能感兴趣的:(swift BUG)