Skip to content

Instantly share code, notes, and snippets.

View jimcervone's full-sized avatar

Jim Cervone jimcervone

  • Maven Machines
  • Pittsburgh, PA
View GitHub Profile
@jimcervone
jimcervone / auto-layout-tutorials.md
Last active August 29, 2015 14:26
Auto Layout Tutorials

Auto Layout Tutorials

Starting from iOS6 to iOS7 and iOS8.

Follow the tutorials in the order.

The last tutorial witll explain the concepts of Auto Layout using Xcode 6 Beta.

Tweetbot for Mac Super Secret Settings
You will need to use the Terminal app to change these settings:
# these all affect the text in a DM or new tweet - the default is yes for all of them
defaults write com.tapbots.TweetbotMac TextAutomaticQuoteSubstitution -bool NO
defaults write com.tapbots.TweetbotMac TextAutoCorrect -bool NO
defaults write com.tapbots.TweetbotMac TextContinuousSpellChecking -bool NO
defaults write com.tapbots.TweetbotMac TextAutomaticTextReplacement -bool NO
@jimcervone
jimcervone / NavigationStackSwitch.m
Created July 25, 2013 13:47
Switch Navigation Stack (Useful for Login)
- (void)replaceNavigationStack
{
FirstViewController *vc1 = [[FirstViewController alloc] init];
SecondViewController *vc2 = [[SecondViewController alloc] init];
ThirdViewControler *vc3 = [[ThirdViewController alloc] init];
NSArray *newViewControllers = [[NSArray alloc] initWithObjects:vc1, vc2, vc3, nil];
[[self navigationController] pushViewContrller:vc3 animated:YES];
[[self navigationController] setViewControllers:newViewControllers];
}