On a recent project I had to take an otherwise square image and add both rounded corners and a border. Here is an image similar to what I started with:
And here’s the code to create the image and imageview, add a border and round the corners:Tweet
When I upgraded to Mavericks and Xcode 5.x, my code signing scripts began to fail with the following error:
cannot find code object on disk
I was able to get around this issue by adding the following to my shell (Bash) script:
Miso Antonic wrote to tell me about a post on the Paintcode blog:
In iOS 7, Apple introduced a slightly different icon shape – it is no longer a simple rectangle with circular arcs in corners. The old design produced a subtle but noticeable “hump” in places where arc touches some of the straight lines. The new iOS 7 icon shape looks more “organic” and eliminates this effect.
We’ve decided to open source some Objective-C categories for drawing the new iOS 7 rounded rectangles.
Included in the post is a good summary (including visuals) of the changes in iOS 7 rectangle rounding.Tweet
NSNotificationCenter provides a centralized hub through which any part of an application may notify and be notified of changes from any other part of the application. Observers register with a notification center to respond to particular events with a specified action.
Mattt walks through the basics of observers and posting notifications.Tweet
Using x-callback-url’s source apps can launch other apps passing data and context information, and also provide parameters instructing the target app to return data and control back to the source app after executing an action.
One key benefit of x-callback-url is providing a standardized approach to exposing methods for other applications.Tweet
This application will successfully pair between a true iOS device (iPhone or iPod touch) as well as the Xcode simulator. Just deploy one right after the other and wait for the pairing confirmation.
Joris Kluivers on getting the system provided model identifier:
The raw identifier is not something you usually display in a user interface directly, instead you show a more friendlier name. Unfortunately a way to translate iPad2,1 to iPad 2 (Wifi) is not readily available.
Joris has created a plist that includes the following for each device type:
Device – the device name (eg. MacBook Pro, iPad 2, iPad Air)
Generation – device generation (eg. Late 2006)
Variant – variants within the same generation (eg. 17-inch, Retina)
A custom UILabel that acts as a time counter, counting up or down and formatting the string to hours, minutes, seconds and milliseconds. Designed to accept a value in milliseconds that is then displayed it in a time friendly format.
We intend for this icon pack to be used with Ionic, but it’s by no means limited to it. Use them wherever you see fit, personal or commercial.
If you are looking for a nice set of icons, I highly recommend you take a closer look. Ionic is an interesting project in its own right:
Ionic is a beautiful front-end framework for developing hybrid mobile apps in HTML5.
While the concept of the fisheye itself is not entirely new and everyone using OS X knows this effect from Dock, it seems completely underused in touch devices. We decided to bite the bullet and just roll out our own.
Bartosz also includes a walk through how how to properly scales the images for the fisheye effect.Tweet
Dustin Bachrach explores Python’s sequence unpacking from the Objective-C perspective:
Python has this little beauty of code to swap variables a and b:
a,b = b,a
This is Python’s sequence unpacking. It’s obvious, concise, and extensible.
When developing iOS apps a number of things are required for producing a quality product. These include the ability to run unit tests on the code and to test the user interface automatically. We can set up Continuous Integration (CI) to complete these tests for us.
James walks through the process of CI setup and configuration.Tweet
CoverStory is an open source project written by Dave MacLachlan:
Code coverage doesn’t work well with iOS 7 because iOS 7 does not call any code at the “end” of an app.
CoverStory is a GUI tool for analyzing code coverage.Tweet
The easiest offline way to get NSTimeZone from CLLocation. You can do the same job by calling Google API or Yahoo API but APTimeZones works locally, offline and with no limits inherented to hosted solutions.
Podlife, is designed to help you keep your pods up-to-date, find new libraries to make building apps faster, and give you quick access to documentation while on the go.
The app is free, however, you can make an in app-purchase to support Cory’s future development of the project.Tweet