Add GIT Branch Name to Prompt In MAC Terminal

When in a repository directory, show the name of the currently checked out Git branch in the prompt.How to get this working:First you need to get  git-branch.bash  script (see it here) and put it in your home directory:curl -L https://raw.github.com/uditiiita/Git-Scripts/master/git-branch.bash -o ~/.git-branch.bashNotes: Explanation of the above file you just downloaded.In the above file... [Read More]

Change status bar appearance in iOS7

Setting status bar style globally:In Info.plist set 'View controller-based status bar appearance' as NOIn AppDelegate add[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];to- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ...... ...} This solution works for iOS 7.For cases when you want to set the style differently in each view controller:If you have an embedded navigation controller created... [Read More]

Fixing Code Coverage Problem iOS 7

Code coverage‚Ķ Back in the days of running on iOS 6 using Xcode 4, measuring code coverage for unit tests was fairly straightforward. A set of coverage scripts made it easier.Then along came iOS 7 and Xcode 5. Coverage still worked if you continued to run on iOS 6. But on iOS... [Read More]

NavigationBar title is coming in black color. Want it in white color ios 7

If you want to set background for Navigation Bar to be black and all colors inside it to be white.Before ios 7, you might have used this code :[[UINavigationBar appearance] setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys: [UIColor whiteColor], NSForegroundColorAttributeName, [UIColor whiteColor], NSForegroundColorAttributeName, [NSValue valueWithUIOffset:UIOffsetMake(0, -1)], NSForegroundColorAttributeName, [UIFont fontWithName:@"Arial-Bold" size:0.0], NSFontAttributeName, nil]];But if you use the same... [Read More]

Updating your app for ios 7

As you probably know by now, iOS 7 has brought a couple of changes to the design language. This means your app needs to be updated so as not to look out of place on the OS.Here at the Vault, we are going through the same process. You may have... [Read More]