2013-02-21 18 views
0

我在想,如果有一個圖書館或東西內置到目標C,使流暢的動畫和諸如此類jQuery提供。像jQuery的Objective C的iOS版應用程式的影響

我不問如何使用jquery客觀C,因爲我知道他們是兩種語言。如果寫在目標C就是喜歡用動畫和jQuery的這樣的東西我是問。

如果沒有,可能有人點我在正確的方向開始建立類似的東西從零開始目標C。

感謝,

邁克爾

回答

1

退房動畫指南的觀點:

http://developer.apple.com/library/ios/#documentation/windowsviews/conceptual/viewpg_iphoneos/animatingviews/animatingviews.html

這裏有一個很好的教程:

http://www.raywenderlich.com/2454/how-to-use-uiview-animation-tutorial

你可以做一些很酷的東西,就像出衰落的視圖,則:

[UIView animateWithDuration:1.0 
         delay: 0.0 
        options: UIViewAnimationOptionCurveEaseIn 
       animations:^{ 
        self.view.alpha = 0.0; 
       } 
       completion:^(BOOL finished){ 
        // Wait one second and then fade in the view 
        [UIView animateWithDuration:1.0 
              delay: 1.0 
             options:UIViewAnimationOptionCurveEaseOut 
             animations:^{ 
              self.view.alpha = 1.0; 
             } 
             completion:nil]; 
       }]; 
相關問題