-
dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
target dependencies 我沒有添加Alamofire框架也可以解決問題(模擬器上)
參考鏈接:https://github.com/Alamofire/Alamofire/issues/101
down voteaccepted
- Expression of type 'UIViewController?' is unused
popViewController(animated:) returns UIViewController?, and the compiler is giving that warning since you aren't capturing the value. The solution is to assign it to an underscore:
_ = navigationController?.popViewController(animated: true)
- 突然發(fā)現(xiàn)按鈕無法點擊呻疹,原來是View A顯示為cyan顏色越败,
Button是放在View B上面的掉蔬,然后將View B放在View A上,當時沒設置View B的frame咱筛,所有無法接受點擊事件奸笤。
參考鏈接:UIButton無法響應點擊事件
- 不能將swift中自定義枚舉值直接給服務端
enum MTPublishJobType: Int {
case fulltime = 0
case parttime = 1
}
self.parametersList["parttime"] = 0
// self.parametersList["parttime"] = MTPublishJobType.parttime這樣傳參有問題,