Тег ‘UITabBar’:
Рубрики: Apple, iPad, iPhone, Mac OS X on May.30, 2010
It’s easy! As of iPhone SDK 3.0, custom gradients can be implemented very easily, without subclassing or images, by using the new CAGradientLayer add framework 1#import < QuartzCore/QuartzCore.h> so, example:
Теги: Gradient, iPad, iPhone, objective-c, UI, UIKit, UITabBar
Рубрики: 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
Рубрики: iPhone on Nov.20, 2009
Hide UITabBarController/UITabBar with animation. 123456789101112131415161718192021222324252627282930313233BOOL hiddenTabBar; UITabBarController *tabBarController; – (void) hideTabBar { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.4]; for(UIView *view in tabBarController.view.subviews) { CGRect _rect = view.frame; if([view isKindOfClass:[UITabBar class]]) [...]
Теги: iPhone, objective-c, UIKit, UITabBar, UITabBarController, Кодинг
Рубрики: iPhone, OOP on Oct.08, 2009
Вариант 1 Вкратце о чем нужно помнить! Самое главное, если вы используете какие-то переменные из приват фреймверков и для них не прописаны property, обязательно пропишите! Иначе при компиляции на эти переменные будет ругаться компилятор к примеру так: 1234"_OBJC_IVAR_$_UITabBarItem._selectedImage", referenced from: _OBJC_IVAR_$_UITabBarItem._selectedImage$non_lazy_ptr in UICategory.o ld: symbol(s) not found collect2: ld returned 1 exit status Рассказывать тут [...]
Теги: Apple, iPhone, objective-c, OOP, Private, Rewrite, UITabBar