Browsing articles in "IOS Library"
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 [...]

Dec
3
2011

Parsing XML in Objective-C with TouchXML

xml_file

There’s a lot of libraries available for parsing XML in Objective-C, one of them is TouchXML. Here’s a sample source code on how to use TouchXML to parse XML data. You can get the TouchXML here. TouchXML is using XPath, if you never heard of XPath, read it more here.

Nov
28
2011

PLCrashReporter, The iPhone crash framework

PLCrashReporter

PLCrashReporter provide an in-process CrashReporter framework for the iPhone and Mac OS X. This framework is very helpful in getting the crash report for your app from beta tester or real users. I’m not sure how most of the developer ask for the crash report from their users, but one way is to ask them to connect their IOS device to iTune, get the crash report and send them manually, but this is just too [...]

Nov
26
2011

CLKeypad, A Customized iPhone Keyboard NumberPad

CLKeypad

CLKeypad is a customized iPhone keyboard NumberPad with a customized toolbar. It has the same function as UIKeyboardTypeNumberPad except that CLKeypad provide an extra decimal point button. You can customize the toolbar and each of the keys with your own image. To use CLKeypad, you just need to implement it’s delegates, – (void)hideCLKeypad; – (void)numberPressed:(NSString *)number; and the UITextFieldDelegate to assign the texfield’s inputView(toolbar) and inputAccessoryView(keypad): -(void)textFieldDidBeginEditing:(UITextField *)textField{ if (keypad == nil) { keypad = [...]

Ads

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

Facebook Page

Categories