iOS UITabBar : Remove top shadow gradient line

Similary in answer for this question … if You don’t want to mess with any kind of 1×1 transparent image, this work’s too: [[UITabBar appearance] setBackgroundImage:[[UIImage alloc] init]]; [[UITabBar appearance] setShadowImage:[[UIImage alloc] init]]; In swift: UITabBar.appearance().shadowImage = UIImage() UITabBar.appearance().backgroundImage = UIImage()

UICollectionVIew: How can I remove the space on top first cell’s row?

UICollectionView is descendant of UIScrollView class which has contentInset property, setting -20 top inset fixes the problem [self.calendarView setContentInset:UIEdgeInsetsMake(-20, 0, 0, 0)]; However, the problem comes from UIViewController’s automaticallyAdjustsScrollViewInsets property. By documentation: Default value is YES, which allows the view controller to adjust its scroll view insets in response to the screen areas consumed by … Read more

IOS launch images – driving me crazy [closed]

For anyone finding this now i’ve created a list to simply explain what each of Apple’s somewhat confusing names actually mean. iPhone Portrait iOS 8,9 Retina HD 5.5 (iPhone 6 Plus) – 1242px x 2208px – Default-736h@3x.png Retina HD 4.7 (iPhone 6) – 750px x 1334px – Default-667h@2x.png iPhone Landscape iOS 8,9 Retina HD 5.5 … Read more

Best Way to check for iOS 7 or earlier? [duplicate]

I always keep those in my Constants.h file: #define IS_IPHONE5 (([[UIScreen mainScreen] bounds].size.height-568)?NO:YES) #define IS_OS_5_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 5.0) #define IS_OS_6_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0) #define IS_OS_7_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) #define IS_OS_8_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) #define IS_OS_9_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 9.0) Although I’ll … Read more