絕對不會承認UIImagePicker,PHPickerView,MFMailCompose,MFMessageCompose,CNContactPicker,QLPre,MPMediaPicker,UIColorPicker,UIFontPickerViewController….等是因為data source 或 delegate還不會的關係才沒寫的XD 接下來都是使用present方式來使用,completion可以在alertViewController上多多利用,主要是完成後需要做怎樣的動作寫code進去或者nil
在此篇我都使用如果textfield偵測到是空的讓使用者按按鍵後直接填入要顯示的網址或名稱…等 func present(_ viewControllerToPresent: UIViewController,
animated flag: Bool,
completion: (() -> Void)? = nil)