Browsing articles from "January, 2012"
Jan
26
2012

Customize UISearchBar Background Image

custom-uisearchbar

In this post, I’ll walkthrough how to customize the background of UISearchBar. In order to customize the UISearchBar, first we need to know it’s subviews. We can get the subviews by running the code below: for (UIView *subview in [searchBar subviews]) { NSLog(@"%@", [subview class]); } If you run the code above, and you are running IOS 4.3 and above, you should see two subviews “UISearchBarBackground” and “UISearchBarTextField”. So, we know that UISearchBar consist of [...]

Jan
26
2012

O level POA iPhone App

POA-1

New iPhone app released on Chinese New Year, Jan 25, 2012. App name: O Level POA Description: Learn GCE ‘N’ and ‘O’ Level Principles of Accounts by reviewing the notes specially designed for Secondary 3, 4 and 5 students in Singapore. You will be able to read full notes of all topics and test yourself by attempting on at least 10 multiple-choiced questions per topic. Correct answers will be marked in green while wrong answers [...]

Jan
17
2012

UILabel With Different Style Text

ohattributedLabel

There are situations when we need to style a UILabel differently for each text. This can be done by using NSAttributedStrings. Thanks to the library OHAttributedLabel, you can achieve the styled NSAttributedStrings easily under one UILabel. In order to use the library, you must first import the CoreText Framework. In the example below, I style the label so that the text are splited into 2 different colors. OHAttributedLabel *label; NSString *txt = @"page (1 of [...]

Ads

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Facebook Page

Categories