Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // IPhone2AppDelegate.m
- // IPhone2
- //
- // Created by Ozgur on 5/2/10.
- // Copyright __MyCompanyName__ 2010. All rights reserved.
- //
- #import "IPhone2AppDelegate.h"
- @implementation IPhone2AppDelegate
- @synthesize window,display;
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
- // Override point for customization after application launch
- [window makeKeyAndVisible];
- return YES;
- }
- -(IBAction) click1:(id) sender{
- [display setText:@"Gerabba"];
- }
- - (void)dealloc {
- [window release];
- [super dealloc];
- }
- @end
- //
- // IPhone2AppDelegate.h
- // IPhone2
- //
- // Created by Ozgur on 5/2/10.
- // Copyright __MyCompanyName__ 2010. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @interface IPhone2AppDelegate : NSObject <UIApplicationDelegate> {
- UIWindow *window;
- UILabel *display;
- }
- @property (nonatomic, retain) IBOutlet UIWindow *window;
- @property (nonatomic, retain) IBOutlet UILabel *display;
- -(IBAction)click1:(id) sender;
- @end
- //
- // main.m
- // IPhone2
- //
- // Created by Ozgur on 5/2/10.
- // Copyright __MyCompanyName__ 2010. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- int main(int argc, char *argv[]) {
- NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
- int retVal = UIApplicationMain(argc, argv, nil, nil);
- [pool release];
- return retVal;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement