Skip to content

Instantly share code, notes, and snippets.

View tibo's full-sized avatar

Thibaut LE LEVIER tibo

  • Nantes, France
View GitHub Profile
@tibo
tibo / iOSPeelAwayExample.m
Created April 24, 2012 14:37 — forked from markrickert/iOSPeelAwayExample.m
iOS Peel-Away Example
- (IBAction) pressedPeelIt:(UIButton *)sender
{
//Disable the button so they can't press it
self.peelIt.enabled = NO;
[self.textHere resignFirstResponder];
//Create a new UIView and set the background color to be a UIColor with pattern image of a screen capture
UIView *imgView = [[UIView alloc] init];
[self.view addSubview:imgView];
# /bin/bash
#Usage: $ ./cs_xproj_validate.sh path/to/xcode/project/file/theproject.xcodeproj
#More info: http://stackoverflow.com/q/13962341/89035
PROJECT_FILE="$1/project.pbxproj"
PREVIOUS_LINE=-1
for LINE in `cat "$PROJECT_FILE" | grep -n CODE_SIGN_IDENTITY | grep -o -E '^([0-9]*)'`