Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clenup example

  • Loading branch information...
commit 803844839ce823ebc475de335dfd3fa7653846d2 1 parent ca2d88f
@holtwick authored
Showing with 14 additions and 29 deletions.
  1. +7 −9 example/DemoViewController.h
  2. +7 −20 example/DemoViewController.m
View
16 example/DemoViewController.h
@@ -1,4 +1,11 @@
+/*
+
+ Apply `xobjc` to this file to see the effect
+
+ */
+
#import <UIKit/UIKit.h>
+#import "xobjc.h"
@interface DemoViewController : UIViewController {
XIBOUTLET UILabel *header_;
@@ -10,13 +17,4 @@
int age;
}
-@property (nonatomic, assign) int counter;
-@property (nonatomic, assign) id delegate;
-@property (nonatomic, retain) IBOutlet UILabel *header;
-@property (nonatomic, retain) NSArray *listOfUsers;
-@property (nonatomic, retain) IBOutlet UITextView *message;
-@property (nonatomic, copy) NSString *secretKey;
-
-- (IBAction)doSomething:(id)sender;
-
@end
View
27 example/DemoViewController.m
@@ -1,34 +1,21 @@
+/*
+
+ Apply `xobjc` to this file to see the effect
+
+ */
+
#import "DemoViewController.h"
@implementation DemoViewController
-@synthesize counter;
-@synthesize delegate = _delegate;
-@synthesize header = header_;
-@synthesize listOfUsers = listOfUsers_;
-@synthesize message = message_;
-@synthesize secretKey = secretKey_;
-
-XPUBLIC
+// X PUBLIC
- (IBAction)doSomething:(id)sender {
NSLog(@"Doing something");
}
- (void)viewDidUnload{
[super viewDidUnload];
-
self.delegate = nil;
-
- self.header = XNIL;
- self.message = XNIL;
-}
-
-- (void)dealloc{
- [header_ release];
- [listOfUsers_ release];
- [message_ release];
- [secretKey_ release];
- [super dealloc];
}
@end
Please sign in to comment.
Something went wrong with that request. Please try again.