-
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)
- 突然发现按钮无法点击,原来是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这样传参有问题,