Anyone can play iPhone-Tuzhiwu

681 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
681
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Anyone can play iPhone-Tuzhiwu

    1. 1. Hello,TuzhiAnyone can play iPhone 2nd
    2. 2. Model-View-Controller (MVC)
    3. 3. Left LeftRight Right
    4. 4. TuzhiwuViewController.h .h#import <UIKit/UIKit.h>@interface TuzhiwuViewController : UIViewController{ UILabel *statusText;}@property (nonatomic, retain) IBOutlet UILabel *statusText;- (IBAction)buttonPressed:(id)sender;@end
    5. 5. TuzhiwuViewController.m .m@synthesize statusText;- (IBAction)buttonPressed:(id)sender { NSString *title = [sendertitleForState:UIControlStateNormal]; NSString *newText = [[NSString alloc]initWithFormat:@"%@ Go Go Go.", title]; statusText.text = newText;}
    6. 6. MVCViewModelController View Model
    7. 7. MVCATM
    8. 8. MVC- (View) (Model) (Controller) Controller ATM Controller
    9. 9. MVC-View Model ,Model View
    10. 10. MVC

    ×