Category Archives: iOS

iOS development – UITextView detect current cursor position on tap

For Notethread I’m implementing a tagging feature. I wanted to find out the location of the cursor when the user taps to another position in the text view. Turns out this isn’t too complicated. Make sure you’re implementing the UITextViewDelegate @interface YourViewController : UIViewController <UITextViewDelegate> In your implementation file you’ll want to use the @optional [...]

Also posted in programming | Tagged , | Comments closed

iOS development – unichar to NSString

You can short cut this by relying on the stringWithFormat method in NSString. NSString *text = @”This is a string”; NSUInteger location = 1; unichar prevChar = [text characterAtIndex:location]; NSString *prevCharStr = [NSString stringWithFormat:@"%C", prevChar]; String formatting guide %C 16-bit Unicode character (unichar), printed by NSLog() as an ASCII character, or, if not an ASCII [...]

Also posted in programming | Tagged | Comments closed

iOS development – Find #tags in an NSString

Currently in Notethread I’m adding some functionality for #tags in notes. When I save the note I scan through the text (NSString) to find anything matching the regex: //The # character followed by any word character @”#(\\w+)” Here’s a gist with the methods you’ll need. If you want to view a class I’ve written that [...]

Also posted in programming | Tagged | Comments closed

iOS Development – Lockbox

Lockbox Lockbox is an Objective-C utility class for storing data securely in the keychain. Use it to store small, sensitive bits of data securely. via iOS Dev Weekly, curated by Dave Verwer Tweet

Also posted in link, programming | Tagged | Comments closed

FrameUtils

FrameUtils via codercowboy We created FrameUtils. FrameUtils is a collection of utility methods that simplify frame resize, movement, and debugging operations. Tweet

Also posted in programming | Comments closed

iOS Keychain wrapper – SSKeychain

SSKeychain by samsoffes SSKeychain is a simple wrapper for accessing accounts, getting passwords, setting passwords, and deleting passwords using the system Keychain on Mac OS X and iOS. This was originally inspired by EMKeychain and SDKeychain (both of which are now gone). Thanks to the authors. SSKeychain has since switched to a simpler implementation that [...]

Also posted in link, programming | Tagged , | Comments closed

iOS Tutorial: Creating a chat room using Parse.com

davmendels has a great tutorial using Parse. I do regard this kind of service as the next step in app evolution: for the example that is interesting us today, if you’ve ever created your own php-Ajax-whatever enabled server and tried to bind a client to it, you certainly remember the pain. Enters Parse, which is [...]

Also posted in link, programming | Tagged , | Comments closed

Page optimized by WP Minify WordPress Plugin