Sane localization workflow using Xcode 6, iOS 8, Storyboards and xliff?

We’ve resorted to connecting every label to an @IBOutlet and setting its translation in viewDidLoad() with NSLocalizedString. You are doing that right. Seriously. Wrap your development process around it and you’ll get way better off than trying to adopt the mess that the Storyboard localization evolved into. It solves pt.4 – you decide what you … Read more

Displaying search bar in navigation bar in iOS 8

According to Apple : UISearchDisplayController is deprecated in iOS 8. (Note that UISearchDisplayDelegate is also deprecated.) To manage the presentation of a search bar and display search results in iOS 8 and later, instead use UISearchController. The UISearchController class defines an interface that manages the presentation of a search bar in concert with the search … Read more

How to correctly set application badge value in iOS 8?

In addition to Daij-Djan’s answer: it’s possible to stack the enums so you can request them all at once. Like follows: UIUserNotificationSettings* notificationSettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:notificationSettings]; Debug output mentions I should ask for Application Badge permission

How to integrate splash screen for all types of iPhones in Xcode 6.1?

In Xcode6 for all devices splash screen you need to make splash image for each device size retina and non retina. Best way of done this thng use asset Catalog from target–>general like following screenshot: when you tap the right small arrow near of launchImage (->) you can see the following window: Currently there is … Read more

How to detect Orientation Change in Custom Keyboard Extension in iOS 8?

In order to update your custom keyboard when the orientation changes, override viewDidLayoutSubviews in the UIInputViewController. As far as I can tell, when a rotation occurs this method is always called. Additionally, as the traditional [UIApplication sharedApplication] statusBarOrientation] doesn’t work, to determine the current orientation use the following snippet: if([UIScreen mainScreen].bounds.size.width < [UIScreen mainScreen].bounds.size.height){ //Keyboard … Read more

tech