Open Facebook profile/page – fb://profile/(fbid)* Open Twitter user profile – twitter://user?screen_name=loremipsum To find Facebook ID hit: https://graph.facebook.com/username For more iPhone […]
Category: iOS
Email and url inputtypes in HTML5
Safari on iPhone recognizes the email type and changes the on-screen keyboard to match it (adds @ and .com options). […]
Proper Web Font Rendering in iOS
Ocassionaly iOS will throw tempertantrums with your custom @font-face fonts on your mobile site and decide that it would be […]
Compiling for iOS outside of Xcode with xcrun
If you have a project which build system is GNU Make based, it’s rather easy to compile it for iOS. […]
iOS Crash Reports 101
There are no bug-free apps and everyone who builds software knows it. But this shouldn’t stop us from trying to […]
Log All Messages in Objective-C
Sometimes we really need to log all messages that are sent in our applications, for iOS or Mac OS. Unfortunately […]
NSMutableArray, indexOfObject:, NSNull and NSNotFound (Xcode for iOS)
Creating an array with empty objects NSMutableArray is a useful class for ordering objects and keeping them in order. So […]
CI for Open Source iOS Applications, Part 1: Setup
This guide will walk you through setting up a Jenkins continuous integration server for your open source iOS project. By […]
UILabel’s width to fit its content
Ran into a requirement today that needs a few labels to be content-fit, here’s how I did it: – (void)resizeToContent […]
Safely remove NSMutableDictionary objects in a loop
Ever tried to remove objects from an NSMutableDictionary in a loop, only to get this exception: *** Terminating app due […]
tableView:didSelectRowAtIndexPath: not working
As I now try to use more and more Interface Builder, I stumbled upon (twice) on a bug where I […]
List of files in a directory and subdirectories
NSFileManager *fileMgr; NSString *entry; NSString *documentsDir; NSDirectoryEnumerator *enumerator; BOOL isDirectory; // creo il file manager fileMgr = [NSFileManager defaultManager]; // […]
Dr. Fone for iOS
Wondershare Dr. Fone for iOS is reliable utility to recover and protect data from latest Apple devices like iPhone 4S, […]
Node 0.10.0 and Xcode Command Lines fix
After installing node.js v 0.10.0, and changing /usr/lib/node_modules permissions to my preferred user to avoid sudo for npm installations, I […]
Open iOS Simulators directory in Finder
Xcode 6: open ~/Library/Developer/CoreSimulator/Devices/. Xcode 3-5: open ~/Library/Application Support/iPhone Simulator/. Useful for manipulating stuff on the actual simulator device when […]
Default initializer in Objective-C
Overriding initializers in Objectice-C is allways paint in the ass. This is because when you inherit class with you custom […]
how to console UIFont family names
Sometime i struggle with uiappearance proxy and get continuous error when trying to use custom fonts. This snippet helps me […]
RxSwift Learning Resources
FlamingPants – Firebase, RxSwift and SlackTextViewController by Maximilian Alexander Functional Reactive Programming with RxSwift by Maximilian Alexander Make UITableView more […]
Output an NSString to STDOUT in Objective-C
Admittedly, this is something you wouldn’t often want to do unless writing an command line application in Objective-C/Cocoa, but writing […]
Beware of [NSString hash]
Did you know, that [NSString hash] is not safe for generating unique hash values, when a string is larger than […]