Тег ‘UIInterface’:

Streatch image with stretchableImageWithLeftCapWidth: topCapHeight:

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 = [...]

Теги: , , , , ,

Комментарии отсутствуют

Custom change orientation

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) {       [...]

Теги: , , , , , ,

Комментарии отсутствуют