目前圖只做橫的切割,從第幾張開始到第幾張結束。

+(CCAnimation*)getAnimation:(NSString*)s wCount:(int)wc startFrame:(int)sf endFrame:(int)ef{

beanway 發表在 痞客邦 留言(0) 人氣()

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com"]]];

 

 

beanway 發表在 痞客邦 留言(0) 人氣()

TapTapsViewController.h

#import 

beanway 發表在 痞客邦 留言(0) 人氣()

//可以設成多種顏色

[[[UIView alloc] init] setBackgroundColor:[UIColor blackColor]];

beanway 發表在 痞客邦 留言(0) 人氣()

  • 加入一個按鍵及按下後的事件
    -(void)add{
       [playButton addTarget: self  action: @selector(play) orControlEvents: UIControlEventTouchUpInside];
       }
    -(void)play{
          
      }
  • 改變按鍵的名字

beanway 發表在 痞客邦 留言(0) 人氣()


beanway 發表在 痞客邦 留言(0) 人氣()

General

  • 加入取消按鍵
    In your -viewDidLoad :
        UIBarButtonItem *cancelButton =
            [[UIBarButtonItem alloc] initWithTitle: @"Cancel"
                                     style: UIBarButtonItemStylePlain
                                     target: self
                                     action: @selector(cancel:)];
        self.navigationItem.rightBarButtonItem = cancelButton;
        [cancelButton release];

     

beanway 發表在 痞客邦 留言(0) 人氣()


- (void) start{

NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval: 0.5

beanway 發表在 痞客邦 留言(2) 人氣()

 

/*--------------放大--------------*/

beanway 發表在 痞客邦 留言(0) 人氣()

 

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

beanway 發表在 痞客邦 留言(0) 人氣()

«12 3