Tag: ios

iOS Game Engines

After playing Rovio's new Amazing Alex game for a while, and seeing this article on BGR this morning, it made me remember some old success stories that I had read about, and I got to thinking about what it would take to develop a game for iOS. More just to see what options were out there than anything else; I know nothing about game programming. Side note: Amazing Alex is great. If you have ever played the incredible machine, you'll feel right at home. One success story I remember is Ethan Nicholas and…

Adding Done and Cancel buttons to an iOS number pad

There are some cases when you may want to have a "Done" or "Cancel" button on an iOs number pad when editing a text field. This doesn't come by default, but is easy to add. See the example snippets below, or check out the code on github. Sample Usage: DoneCancelNumberPadToolbar.h DoneCancelNumberPadToolbar.m Special thanks to [akozl ik](http://www.reddit.com/r/iOSProgramming/comments/ydrzv/adding_done_and_canc el_buttons_to_an_ios_number/c5v4rpt) for the help with delegates.

iOS: Multiple Lines of Text in a UITableViewCell

Have you ever wanted to display multiple lines of text in your Table Cell? It's easy to do in your UITableViewController. First, let's define the type of font we're going to use. We'll need this in 2 places: Next, calculate the height of the cell by using the height of a Label: Finally, we'll set some attributes on the cell itself to change the height and tell the text to wrap:

Automate Adding to Trello on iOS with Launch Center Pro and Pythonista

I love using Trello to organize my life and work. While I kind of like it's iOS app, sometimes navigating to a board to add a card can be a little time consuming.  I want this process to be faster. I also use Launch Center Pro to get some quick actions that I miss from Android. Mostly around quick communication, adding events, and now, adding to Trello.  LCP uses x-callback-urls for inter-app communication, but Trello doesn't have any that I could see. Inspired by Federico Viticci's article on automating…

AVSpeechSynthesizer's queue doesn't work

Sort of. It acts as a queue, but subsequent items have problems. Taken from the documentation of  Calling this method adds the utterance to a **queue; utterances are spoken in the order in which they are added to the queue**. If the synthesizer is not currently speaking, the utterance is spoken immediately. This is true. You can queue up as many AVSpeechUtterance objects as you want, and they will be spoken, in order.  The problem is if you try to act on the Synthesizer after the first Utterance has been…

Reordering a NSFetchedResultsController

I’m working with a NSFetchedResultsController backed UITableView.  Up until now I’ve just been ordering the items by the time they were added. I’m moving on to Delete and Edit.  Editing the content itself isn’t needed, once an item is added to this list, it can’t be changed. Deleting is straightforward in With reordering, I have a conundrum.  I have an approach for the actual re-order that will have the View and the data playing nice. But, now I need to persist the order.  I don’t have a property in Core…