https://gist.github.com/2952892 # Mac OS X Finder and whatnot .DS_Store # Sparkle distribution Private Key (Don’t check me in!) dsa_priv.pem # […]
Tag: #xcode
Removing Arrow Image from iOS Story Board After Segue
While creating segues in the story board for an iOS project an arrow was showing up in the TableViewCell that […]
Xcode 4.5.2, RVM & MacRuvy
No se porque sucede, pero cuando instalo MacRuby con RVM me saca un error respecto a la libreria MacRuby.framework Para […]
xcode-select: error: tool ‘xcodebuild’ requires Xcode
Getting this (especially with npm install?): xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command […]
Convert SQLite to CoreData
NSString* bundlePath = [[NSBundle mainBundle] bundlePath]; NSString* path = [NSString stringWithFormat:@”%@/CoreDataSourceFile.sqlite”, bundlePath]; SQLiteDatabase *database = [[SQLiteDatabase alloc] initWithPath:path]; NSArray *result […]
iOS Version Numbers with git
Some random comments about version numbers in general and a simple script and work flow to create them for your […]
Check if APNS are enabled in your App
– (BOOL)isPushEnabled { UIApplication *application = [UIApplication sharedApplication]; return application.enabledRemoteNotificationTypes != UIRemoteNotificationTypeNone; } Example: NSLog(@”APNS are %@enabled.”, [self isPushEnabled] ? […]
UIImage in Xcode quick look: must be unwrapped
Using Xcode to debug has been fantastic, and frustrating at the same time. UIImage objects are often great to look […]
Modifying XCode projects via command line
As part of the iOS developer tasks, I have to create plugins for Unity3d to interact with native libraries. So […]
Xcode 5 CL tools
Missing your command line tools after upgrading to OS Mavericks, just issue following command on terminal: xcode-select –install
Get current device orientation
Landscape //Return YES if current orientation is landscape + (BOOL) isOrientationLandscape { if (UIDeviceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])){ return YES; }else{ return […]
Upgrade to Ruby, Homebrew with Xcode 4.3
Download Xcode 4.3 from Apple. Download Command Tools as well. Install both. Then: brew update brew install autoconf automake brew […]
How to avoid to hardcode the nib name
On iOS when it’s time to load some kind of resource such as images, nib, etc… you have to hard […]
Emoticonizer: replace :) with Emoji
https://github.com/larsschwegmann/Emoticonizer A very simple class to convert smileys like 🙂 or 😀 to emoji symbols. Just import the class and […]
UserInterfaceState, Git, & Xcode
You have an existing Xcode project and you want a brand new local git repo. Xcode wants to include UserInterfaceState […]
inspect the view hierarchy in iOS
Sometimes you need to see all subviews in the current screen or view. If you pause the app in the […]
How to intercept Call event in an application ?
CTCallCenter* callCenter = [[]CTCallCenter alloc] init]; [callCenter setCallEventHandler:^(CTCall* aCall) { NSLog(@”Call Event:n %@”, [aCall description]); }]; (Original sources: http://www.jesuisdeveloppeuriphone.com/2012/08/24/coretelephony-how-to-intercept-call-event-in-an-application/ )
Debugging Xcode Plugins
The (short) guide for Xcode plugin debugging, based on my experiences working on Alcatraz package manager and DerivedData Exterminator Attach […]
Add iOS Simulator to Dock After Xcode Update
The iOS simulator bundled with Xcode in OSX is a great tool for testing websites in the browser app in […]
Swift Clean Code
Make Clean code by splitting your code into Extensions and Nested types . Read more here – Swift clean Lazy […]