This is just a small feature I implemented into a recent project but could be very useful. It will highlight instances of a string within a NSMutableAttributedString.
For example - a we could highlight each instance of "we" in "We all went to the beach on Wednesday". In practice I added this to a search suggestion field to show where the matches were taking place.
With the recent launch of the updated Apple TV it was about time to sit down and take a look. The launch of Apple TV and it's tvOS SDK (similar to iOS) will allow developers to build out their tvOS app using Javascript, TVML and Swift, and also add their apps to the Apple TV's own app store.
Custom alert views are a great way to bring a stronger branding and design finish into your app. In retrospect they are simply just a custom overlay view - and after using the same code for the last few projects with a bit of customisation here and there it makes sense to offer my base class to developers to make use of also.
A nice little feature I was recently asked to implement to which I could find no obvious solution. A small code sample to help those in need of a similar solution.
Something often overlooked is how your app integrates to the user's mobile experience. When listening to music and interacting with other apps, it can be a bad user experience for the user's audio experience to be cut off when your app has no use for a focused audio experience.
Here's a short code snippet to allow your user to play background music in your IOS App...
So we all know Game Center isn't ideal - if user's don't login at install time it can be hard to get them to login whilst within your app. Game Center is designed to stop presenting the Game Center login view after the user has dismissed it a few times. Short of giving the user clear instructions to login once this has occurred there isn't really any ideal solution to get your user to login once they have decided to do so.
A neat little trick I've just been shown when implementing a singleton within Obj-c/ Xcode. We can forget about the sharedInstance method and simply call the singleton by [UsersSettingsInstance method:parameters].
Since Apple introduced iBeacon as the WWDC conference as part of IOS7 it'd be fair to say that it may be slowly passing under the radar, but for me as a developer I feel this will be one of the most exciting products of recent years. Already there are a few front runners producing the hardware to utilise this technology and the case studies they have developed are very clear and focused in how they will help the end user.
A small issue I ran into today when running my unit test cases where none of the libraries within my podfile were found. Simple fix is to edit the podfile so that it links to your main target and test target...
link_with ['XXXXXTarget', 'XXXXXTargetTests']
Then run your pod install and you should be all set.