2016年8月19日 星期五

iOS: Developement Memo

since: 2016/08/19
update: 2016/10/13

reference: 1. iphone - Why does viewWillAppear not get called when an app comes back from the background?






-----------------------------------------------------------------------------------------------





-----------------------------------------------------------------------------------------------


-----------------------------------------------------------------------------------------------

震動提示(Vibrate):

//@Vibration ------
import AudioToolbox

....
//@Vibration ------

AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)
....

-----------------------------------------------------------------------------------------------
Detect when an app comes back from the background:
....
    override func viewDidLoad() {
        super.viewDidLoad()


        // set observer for WillEnterForeground
        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(willEnterForeground), name: UIApplicationWillEnterForegroundNotification, object: nil)
    }

    // my selector that was defined above
    func willEnterForeground() {
        // do stuff
    }

....
-----------------------------------------------------------------------------------------------
Xcode Error Message: [LogMessageLogging] 6.1 <private>

參考: アプリ開発ブログ(仮): 変なメッセージ:Xcode8、iOS10でいっぱい出た




-----------------------------------------------------------------------------------------------來自 Apple:
    Your app uses or references the following non-public APIs:

    stopTime

    The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.


=> use: grep -R 'stopTime' * to search the string



-----------------------------------------------------------------------------------------------
Apple Map:



-----------------------------------------------------------------------------------------------Build Phases:


-----------------------------------------------------------------------------------------------

Info.plist





沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。