Рубрики: Apple, iPad, iPhone, Mac OS X on Mar.10, 2010
Sample 1234567891011121314151617+ (UIImage*)greenBubble { if (sGreenBubble == nil) { UIImage *i = [UIImage imageNamed:@"Balloon_1.png"]; sGreenBubble = [[i stretchableImageWithLeftCapWidth:15 topCapHeight:13] retain]; } return sGreenBubble; } + (UIImage*)grayBubble { if (sGrayBubble == nil) { UIImage *i = [...]
Теги: iPad, iPhone, objective-c, UIImage, UIInterface, UIKit
Рубрики: iPhone on Jan.12, 2010
Solution for change orientation with uitabbar and others exeptions. 12[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didOrientation:) name:@"UIDeviceOrientationDidChangeNotification" object:nil]; And method 1234567891011121314- (void) didOrientation: (id)object { UIInterfaceOrientation interfaceOrientation = [[object object] orientation]; if (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) { [...]
Теги: Apple, iPhone, objective-c, OOP, UIInterface, UIKit, UITabBar