Quantcast
Channel: [SMD] - 8L0G5PH3R3 » Objective-C
Browsing latest articles
Browse All 5 View Live

XML Date to CoreData NSDate

Here is code snippet to parse a XML string to Core Data NSDate. NSString *string = [currentString stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]]; NSLocale* usLocale...

View Article


Limit the size of UITextField

// Text field delegates - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { if ([[textField text] length] + [string length] -...

View Article


Enable SQL Debugging in Xcode4

If you would like to output the SQL being generated by Core Data, here is the quick steps: Go to Product -> Edit Scheme Choose Run YourAppName.app Add -com.apple.CoreData.SQLDebug 1 to the Arguments...

View Article

A handy way to dismiss keyboard

This method looks at the current view and its subview hierarchy for the text field that is currently the first responder. If it finds one, it asks that text field to resign as first responder. If the...

View Article

Convert string to MD5 hash

Add Security.framework to your project

View Article

Browsing latest articles
Browse All 5 View Live