28
2011
PLCrashReporter, The iPhone crash framework
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 [...]
26
2011
CLKeypad, A Customized iPhone Keyboard NumberPad
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 = [...]
25
2011
Edit Xcode 4 Project’s Organization Name
Some people that are new to Xcode 4 are still wondering how to change the default organization name under the copyright text. Before Xcode 4, what you can do is something like: defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions ‘{"ORGANIZATIONNAME" = “{Company Name}";}’ , or update the Xcode template file. With Xcode 4, here’s a quick one. Select your project, on the right pane, under ‘File Inspector->Project Document’, you’ll see an ‘Organization’ field. Just fill in your company [...]
23
2011
Working with delegate in objective-c
Base on the explanation in Apple Developer Documentation, delegation is a simple and powerful pattern in which one object in a program acts on behalf of, or in coordination with, another object. The delegating object keeps a reference to the other object—the delegate—and at the appropriate time sends a message to it. The message informs the delegate of an event that the delegating object is about to handle or has just handled. The delegate may [...]
22
2011
Parsing CSV to Objective-C with CHCSVParser
Ever thought of how to import your excel data into iphone project? You can do it with CSV parser. CHCSVParser is an Objective-C parser for CSV files. It is very useful if you would like to import your data from excel file, you can save your excel to CSV format and import them into objective-c. The source can be downloaded from github here. To use this library, in your controller, you need to import the [...]
21
2011
JSON in ios 5
Before ios 5, we have to use third party JSON library like SBJSON or TouchJson to deal with JSON data. Today, iOS 5 has built-in APIs in the Foundation Framework which is called the NSJSONSerialization to make it easy to read and write JSON. Click here for reference. Below is an example of how to read JSON data into NSArray, NSDictionary and NSString. NSString* str= @"{\"name\":\"cayden\",\"hobby\":[{\"0\":\"programming\"}, {\"1\":\"gym\"}]}"; NSData* data=[str dataUsingEncoding:NSASCIIStringEncoding]; NSError* error; NSDictionary* json [...]
Ads
Facebook Page
Recent Comments
Categories
- Apache (1)
- Apps (1)
- Blog (18)
- IOS (17)
- IOS Library (4)
- iPhone Tutorial (15)
- Javascript (1)
- Node.js (1)
- Twitter (1)


An article by




