Category: Objective-C

  • STAlertView – UIAlertView with blocks

    STAlertView – UIAlertView with blocks

    While developing an iOS app, usually you have to show an alert view. The code to show it is very simple, but as most of the UKit components, it works with the delegate pattern. Working with delegates is easy, but the resulting code is split between two parts. The part where the component is initialized, […]

  • Push notifications iOS8

    Push management on iOS8 To migrate an app that uses push notifications from iOS7 to iOS8, you must change some methods. Register the app to receive push The method registerForRemoteNotificationTypes has been deprecated, and now you must use registerUserNotificationSettings. To have compatibility with both versions you can use this code: Check if the user has […]