Category: Code
-
Create your own Xcode code snippets
Using the Code Snippet Library from Xcode is very handy sometimes. However, the library consists only of a small amount of available code snippets. But you are not limited to them, rather than you can create your own code snippets for code patterns you are using very often.
-
Swipe gestures on UITableView
User interactions on table cells don’t have to be necessarily restricted to simply scroll and tap them. However, with some additional code and the support of gesture recognizers introduced in iOS 3.2 you can give your users the possibility to swipe on your table view cells for exciting additional actions. A common task for that […]
-
Objective C HMAC-MD5
Sometimes it is necessary to implement some cryptographic functions for security reasons within your iOS apps. In one of our projects I was faced with the problem of implementing some kind of a two-step registration/confirmation process with a iOS app and a corresponding server-side interface. We decided to implement this by using a generated confirmation […]
-
UIDatePicker and UIPickerView
Sometimes it is necessary to adjust the color of the standard UIDatePicker and UIPickerView controls within your iOS application. Sadly the iOS SDK doesn’t support to change the background color or even the tint of these controls. A simple workaround for this is to create separate images and use them within an UIImageView as your custom overlay.
-
iAd Integration
Advertisements are another option to provide your iOS applications still for free but also to get some cash back for your work. Although ads are not that popular to app users Apple made a big hit with their new iAd network. I’d like to call iAd the next level of advertisement on mobile devices because […]
-
iOS fade-in and fade-out Animation
Today just a small code snippet to create a nice fade-in-fade-out (or call it pulsating) effect on a given UIImage . To accomplish this within a UIView you have to do only a few steps: Create a UIImageView containing your image. Create the animation with its properties. Set the animation for the specific layer containing your image.
-
A infinite/endless paging UIScrollView
Infinity is a very powerful concept, so maybe my post title shouldn’t include this term. Anyway, I tried to create something similar to a infinite or endless paging scroll view. The idea is very simple: Create a view including a standard scroll view. Provide an interface to load views for each page on demand. Cache […]
-
Transparent UIToolBar
Sometimes it is really necessary to have a transparent UIToolBar within you iPhone app. Especially if you want to add a UIToolBar to your UINavigationBar you get some problems with overlaying backgrounds (UIBarStyleBlackOpaque did not work for a toolbar on a black opaque navigation bar).
-
Custom Popover View
The possibility to show popover views (modal or non modal) is a really cool thing within the new iPhone OS 3.2. It allows you to display important information, request some input from the user or present some kind of navigation structure. Anyway, it depends on your application but it helps to focus the user on […]
-
iPad split view application
The split view is something very cool within the new iPhone OS 3.2. It allows us to visualize a master-detail view in a very simple manner. Combined with iPads’ big display of 1024×748 pixels it will be possible to create even better, more user-friendly and valuable applications.