-
command + 0 打開項目欄
查看全部 -
手勢右滑
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
查看全部 -
?override func viewDidLoad() {
? ? ? ? super.viewDidLoad()? ?
? ? ? ? name.delegate = self
? ? }
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
? ? ? ? textField.resignFirstResponder()
? ? ? ? return true
? ? }
查看全部 -
測試的成都市采石場電場強度我確定群無·
查看全部 -
? ? ? ? if let name = imageName {
? ? ? ? ? ? let share = [UIImage.init(named: name)!, "分享自女神畫廊", "https://www.baidu.com/"] as [Any]
? ? ? ? ? ? let activityViewController = UIActivityViewController(activityItems: share, applicationActivities: nil)
? ? ? ? ? ? activityViewController.popoverPresentationController?.sourceView = self.view
? ? ? ? ? ? self.present(activityViewController, animated: true, completion: nil)
? ? ? ? }
查看全部 -
如果年份出入的是空nil,
if let year = Int(yearOfBirth.text!){}
查看全部 -
由于swift2.0更新后,toInt()不在使用
現在使用方式 Int(yearOfBirth.text!)解決
查看全部 -
action 動作屬性
查看全部 -
講的不錯 很仔細查看全部
-
修改,不同界面數據傳遞查看全部
-
ViewController之間數據傳遞查看全部
-
收起鍵盤的方法查看全部
-
太老了,現在swift3很多不一樣,越學越困惑,放棄了.查看全部
-
如果要使用swift進行開發,那么開發工具就要選擇xcode6及其以上的版本查看全部
舉報