Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //  IPhone2AppDelegate.m
  3. //  IPhone2
  4. //
  5. //  Created by Ozgur on 5/2/10.
  6. //  Copyright __MyCompanyName__ 2010. All rights reserved.
  7. //
  8.  
  9. #import "IPhone2AppDelegate.h"
  10.  
  11. @implementation IPhone2AppDelegate
  12.  
  13. @synthesize window,display;
  14.  
  15.  
  16. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
  17.  
  18.     // Override point for customization after application launch
  19.    
  20.     [window makeKeyAndVisible];
  21.    
  22.     return YES;
  23. }
  24.  
  25. -(IBAction) click1:(id) sender{
  26.     [display setText:@"Gerabba"];
  27. }
  28.  
  29. - (void)dealloc {
  30.    
  31.     [window release];
  32.     [super dealloc];
  33. }
  34.  
  35.  
  36. @end
  37.  
  38.  
  39. //
  40. //  IPhone2AppDelegate.h
  41. //  IPhone2
  42. //
  43. //  Created by Ozgur on 5/2/10.
  44. //  Copyright __MyCompanyName__ 2010. All rights reserved.
  45. //
  46.  
  47. #import <UIKit/UIKit.h>
  48.  
  49. @interface IPhone2AppDelegate : NSObject <UIApplicationDelegate> {
  50.     UIWindow *window;
  51.     UILabel *display;
  52. }
  53.  
  54. @property (nonatomic, retain) IBOutlet UIWindow *window;
  55. @property (nonatomic, retain) IBOutlet UILabel *display;
  56. -(IBAction)click1:(id) sender;
  57.  
  58. @end
  59.  
  60. //
  61. //  main.m
  62. //  IPhone2
  63. //
  64. //  Created by Ozgur on 5/2/10.
  65. //  Copyright __MyCompanyName__ 2010. All rights reserved.
  66. //
  67.  
  68. #import <UIKit/UIKit.h>
  69.  
  70. int main(int argc, char *argv[]) {
  71.    
  72.     NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
  73.     int retVal = UIApplicationMain(argc, argv, nil, nil);
  74.     [pool release];
  75.     return retVal;
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement