1
試圖讓我的酒吧按鈕做2個動作,如果它被按下。它是否與「轉換」語句一起工作,或者我如何從這裏出發?Bar button double action swift
代碼:
@IBAction func Refreshbutton(sender: AnyObject) {
switch sender.currentTitle! {
case "refresh":
Mapview.userTrackingMode = .Follow
case "refresh2":
Mapview.userTrackingMode = .FollowWithHeading
default: break
}
謝謝工作! – Adam