Wednesday, 27 July 2011

Less typing required!

Not sure when did this start, but now when I create a new project in XCode 4, found that in the header ".h" file, the default property/variable disappeared!

As below, at the line where I put the "//", we used to have to repeat the declaration of "UIWindow *window" and "ScrollViewTestViewController *viewController;", now it all disappeared - which is cool as we can now save some typing...


#import <UIKit/UIKit.h>

@class ScrollViewTestViewController;

@interface ScrollViewTestAppDelegate : NSObject <UIApplicationDelegate> {

//


}

@property (nonatomic, retainUIWindow *window;

@property (nonatomic, retain) ScrollViewTestViewController *viewController;

@end

No comments:

Post a Comment