Archive for 'Programming'

Tip: UIWebView Resizing

So let’s say you’ve got some rather long scrollable content you’re formatting on the fly in a UIWebView. And then the client decides they want the font size to be user changeable. No problem you think, tick ‘Scales to Fit’ and ‘Multiple Touch’, and …

… and now your content is drawn at ‘unreadable squiggle’ size. Whoops. But lo, courtesy of this Stack Overflow question, here’s a super easy way around that:

If you have control of the web page, it is easier to control the UIWebView with http than programmatically.

<meta name=”viewport” content=”width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=0;” />

<meta name=”apple-mobile-web-app-capable” content=”yes” />

Handy, that ‘viewport’ thingy!

Continue Reading →

Twitter Workshop

So how about that iOS 5? Pretty nifty [REDACTED] huh? And have you checked out [REDACTED] yet? And woah, man look at [REDACTED] will you?

But you can find links to all that good stuff plenty of places no doubt; here’s a non-redacted, why non-WWDC even, one you might have missed and if you’re around San Francisco on Wednesday you probably want to check out:

Twitter and iOS – an Integration Workshop

Hi everyone,

We’re incredibly excited about the announcement that Apple made at WWDC today. We believe that Twitter’s deep integration with iOS is going to open up a lot of exciting opportunities for developers. For your apps, this includes:

  • single sign-on and lightweight identity
  • taking advantage of the tweet sheet feature
  • the ability to tweet a photo from your app
  • pulling down a user’s following graph

and a whole lot more. As part of the announcement, we’re looking to host a workshop at Twitter’s headquarters this Wednesday (6/8) from 6:30pm to 8:30pm at 795 Folsom Street. At this event, we’ll cover what the integration hooks mean for developers. Loren Brichter will also be talking about ABUIKit, a UI framework specifically for Mac, which we’ll be open-sourcing.

… RSVP at [this] link

We hope you’ll be able to join us for the evening.


Good stuff, good stuff. As apparently the last person on the planet with a computer that has managed to avoid getting a Facebook account so far, we’re certainly quite pleased indeed that Apple chose the correct social platform to integrate with!

h/t: @alanQuatermain!


Further interesting commentary here: How Twitter + iOS 5 Will Change Mobile Apps

Continue Reading →

Game Developer Resources

OK, now this is one seriously epic collection of development-related links, not iOS focused but worth a read nevertheless:

The Ultimate Indie Game Developer Resource List

This is a list of SERVICES, free and not, that will help you on your path to STARTING and FINISHING a game and SELLING it. Articles are NOT included. If you would like to read articles, check out The Big List of Indie Marketing and Business Tips, 100+ Resources for Video Game Professionals or The Game Programming Wiki

Covers engines, libraries, art, sounds, fonts, deployment, websites, commerce marketing … well, pretty much everything, really!

h/t: @IndieToolShed!

Continue Reading →

Moai SDK

The good folk over at ManiacDev have a pointer to a new cross-platform SDK coming out — Moai “The mobile platform for pro game developers”:

The open source Moai SDK enables game developers to focus on great gameplay and content, code in the easy-to-use Lua scripting language they already know, use ready-to-roll libraries for animation and physics, and avoid rewriting game code for different devices…

Now, what makes this one better than the also Lua-based Corona SDK which at first glance seems aimed at about the same space and is rather popular? The big one seems to be this “Moai Cloud” bit:

Ready-to-scale cloud service for Lua game logic, databases and additional game content. Offer unlockable game content, store persistent player and world state, and write multiplayer logic in the scripting language you’re already using…

That does look like something pretty nifty actually. And hey, the pricing sounds right:

There are game engines aimed at huge studios that cost a million bucks. Others that cost a few thousand. Some for aspiring indie game makers that are nearly free – but any games that succeed will have to pay fat royalty percentages. None of these models seem right to us. That’s why developers can build games with Moai SDK for free, release them for free, and even those who score big hits won’t owe royalties based on their use of the Moai SDK…

Presumably they’re banking on making a buck off the cloud services then. In any case, this certainly does look like an interesting new option to keep tabs on for your game development! Sign up for the beta here; or just check out the introductions here.

Continue Reading →

Keychain Data Protection

Concerned about the security of data your app stores? Here’s a series worth reading:

iOS Keychain Migration and Data Protection – Part 1

I have posted in the past on how to access the keychain to securely store and retrieve data from within an iOS app. However the recent press attention on iOS location data being stored in iTunes backups has got me to take a closer look at how data is secured when it is moved off the device…

iOS Keychain Migration and Data Protection – Part 2

In this post I want to be able to experiment with the various keychain migration and data protection options…

iOS Keychain Migration and Data Protection – Part 3

This final part digs into the detailed implementation of the UYLPasswordManager class that acts as a wrapper around the keychain services…

The time to be aware of these things is before your users get upset, definitely. Particularly if you track, oh, location data, say…

h/t: @kharrison via @mariozullo!

Continue Reading →

Windows Azure Toolkit

So, you interested in Windows Azure for your iOS-supporting cloud computing needs? Haven’t used it ourselves, but we gather it’s basically the middle choice in convenience vs. flexibility between GAE on the one side and EC2 on the other. (Feel free to correct us if that’s wildly inaccurate.) If so, you’ll want to read this post:

Getting Started with the Windows Azure Toolkit for iOS

This first release of the Windows Azure Toolkit for iOS provides an easy and convenient way of accessing Windows Azure storage from iOS-based applications. As with the Windows Azure Toolkit for Windows Phone 7 we will continue to bring additional capabilities to the toolkit, such as push notifications, Access Control Service, and more…

“Push notifications”? That’s a particularly interesting one, the lack of that capability being a major drawback to the use of GAE. If they’re talking real honest to goodness APNS service, that could be a pretty compelling reason to cozy up to Microsoft.

… The toolkit works in two ways: the toolkit can be used to access Windows Azure storage directly, or alternatively, can go through a proxy service. The proxy service code is the same code as used in the Windows Azure Toolkit for Windows Phone 7 and negates the need for the developer to store the Azure storage credentials locally on the device.

The release of the Windows Azure Toolkit for iOS is a significant milestone, and reinforces my opinion that Windows Azure is a great place to run services for mobile applications…

Well, it certainly looks like an interesting option to keep in mind, anyways. Any direct experience to share, Dear Readers?

h/t : ManiacDev!

Continue Reading →


This is kinda a nifty idea for marketing to your customers:

…In a previous #idevblogaday post, I wrote about how to get your users to spread the word and their love for your app in a post entitled Assisted word of mouth: Get users to sell your app.

In this post, I wrote about App Store Gifting and how awesome it actually is. To recap: You’ve already sold your app, the user loves it and wants to share his/her love for it. Gifting is a great way to share the app, and once a user has spent $X.XX, they’re usually more apt to want to Gift your app to a friend or someone in their family. Read the post for more insight.

While Gifting was just one of the ideas I included in my post, Gifting really seemed to be the key idea that most people loved and many wanted to include in their apps.

So, today I am releasing GiftKit. It’s basically Appirater, but for gifting…


Well, it’s certainly an interesting idea; like most things, you’re certainly more likely to get it if you ask than if you don’t!

h/t: @runmad!

Continue Reading →


Do you happen to use Redmine for your bug tracking? If so, you want to check out the RedMine-Feedbacks project on github:

Redmine Feedbacks is a simple MessageUI view which make the user of your iPhone App to send feedbacks directly to the tracker of your Redmine using Redmine REST-XML API…


Now, we still think as discussed here that ProjectPier looks like the best candidate out there for something that suits our particular circumstances; but this certainly is an interesting consideration in favor of Redmine, indeed.

h/t: @romainbriche!

Continue Reading →


This’ll be handy if you’ve got a location-aware project in mind:

SSLocationManager: A Compact Obj-C Library for Location Data

… CoreLocation can be used to obtain the latitude and longitude parameters of the location of the device. But sometimes we need some more detailed information about that specific location. Country, city, state, street, may be postal code etc.. It depends on the application. That is something iPhone or iOS platform does not provide. However, we can use a web service such as Yahoo! PlaceFinder to access detailed information about a location of which we know the latitude and longitude parameters.

What SSLocationManager does is as follows:

  • Ask CoreLocation services to determine current location of the device.
  • Get current position in latitude and longitude from CoreLocation.
  • Call Yahoo! PlaceFinder web service to get detailed information about the location specified with its latitude and longitude.
  • Notify the application via SSLocationManagerDelegate and supply the detailed location data…

Note that the terms of service for said web service include

Use of the Yahoo! PlaceFinder API web service should not exceed 50,000 requests per day. If you believe your application will exceed such volume, please contact us…

so you’d probably want to look into that before a massive deployment, but hey, this is certainly convenient for development!

h/t: @ardalahmet!

Continue Reading →


Here’s another nice piece from the people who brought you that nifty NMView: NMViewController!

iOS provides a lot of convenience classes to integrate common UI metaphors into your Apps: UITabBarController, UINavigationController and UIPopoverController amongst others.

Most of these classes lack the skinnability that many people require when creating branded apps. The NMViewController repository gathers custom implementations of common UIViewController subclasses which allow for a custom look and feel…

Right now there’s a custom NMTabBarController,

A re-implementation of a UITabBarController which allows for a custom look and feel of the tab bar. It comes with a default implementation of NMTabBar called NMUITabBar that provides the iOS default look and feel.

The architectural decision behind NMTabBarController was to free the implementation from an object like UITabBarItem. Without the contraints of the data that can be communicated using UITabBarItem, an NMTabBar hosted by NMTabBarController can display its tabs in whichever way it chooses…

and an NMNavigationController and more are promised soon.

‘Course, if you want to really really customize your tab bar look, the most excellent has a whole selection of others to draw from:

BCTabBarController for iOS

A ground-up rewrite of UITabBarController that adds: “A cool little arrow that slides around to indicate the current tab; support for all orientations; same height as a standard UIToolbar;” and optional labels…

CHViewControllerSwitcher for iOS

A replacement for UITabBarController, with useful features. It allows you to create your own selection interface with UI-components. It allows you to use just some part of the window, not the full-screen mode. It allows you to custom frame sizes of the content view for the portrait/landscape modes…

Animated Tab Bar Selection Indicator for iOS

As seen in Twitter for iPhone (née Tweetie 2), select a tab from the tab bar, and a small triangular selection indicator slides into place above the tab…

CiExpandableTabBar for iOS

ExpandableTabBar is an iOS custom tab bar control. Its behavior emulates the system tab bar with the addition of supporting multiple rows…

TabBarKit for iOS

A flexible Tab Bar implementation for iPhone and iPad…

Something there for anything you want to do no doubt!


And here’s a pointer to VDTabBarController for colorizing your tab bar icons!

InfiniTabBar for iOS — “A scrolling tab bar with space for infinite items.”

ALCustomTabBarController for iOS — “Allows customization of the standard UITabBarController…”

JMTabView — includes a top tab selector as well.

Continue Reading →
Page 30 of 96 «...10202829303132...»