I hereby claim:
- I am amudi on github.
- I am amudi (https://keybase.io/amudi) on keybase.
- I have a public key ASDN1x50LaTXi4ThQQu7Ay2_i6ZKXVJjgV82VdRpgHEHVwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
- (void)perform | |
{ | |
UIViewController *sourceViewController = (UIViewController *)self.sourceViewController; | |
UIViewController *destinationViewController = (UIViewController *)self.destinationViewController; | |
[sourceViewController.view.window.layer addAnimation:[self.class leftToRightTransition] | |
forKey:kCATransition]; | |
[sourceViewController.navigationController pushViewController:destinationViewController | |
animated:NO]; | |
} |
Pod::Spec.new do |s| | |
s.name = "MPFlipViewController" | |
s.version = "0.0.2" | |
s.summary = "Container view controller (iOS 5 containment API) that navigates between child view controllers via touch gestures and page-flip animations." | |
s.description = "A custom container view controller following the iOS 5 containment API that navigates between child view controllers via touch gestures and page-flip animations." | |
s.homepage = "http://markpospesel.com/2012/07/28/mpflipviewcontroller/" | |
s.license = { :type => 'Modified BSD License', :file => 'Source Code License.rtf' } | |
s.author = "Mark Pospesel" | |
s.source = { :git => "https://github.com/amudi/MPFlipViewController.git", :commit => "815705bb46ee412b8d0d380c7eb8f07710b9b926" } | |
s.platform = :ios, '5.0' |
// | |
// UIImage+RoundedResize.h | |
// | |
// Created by Amudi SEBASTIAN | |
// | |
#import <Foundation/Foundation.h> | |
@interface UIImage (RoundedResize) |
@synthesize selectedIndexPath; | |
@synthesize defaultRowHeight; | |
@synthesize optionRowHeight; | |
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil | |
{ | |
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | |
if (self) { | |
self.optionRowHeight = 40; | |
} |
[tableView setContentInset:UIEdgeInsetsMake(1, 0, 0, 0)]; // set content inset so the first separator is displayed |
ABAddressBookRef addressBook = ABAddressBookCreate(); | |
NSArray *allAddressBookPeople = (NSArray *)ABAddressBookCopyArrayOfAllPeople(addressBook); | |
for (int i = 0; i < [allAddressBookPeople count]; ++i) { | |
ABRecordRef record = [allAddressBookPeople objectAtIndex:i]; | |
NSData *imageData = nil; | |
if (ABPersonCopyImageDataWithFormat != NULL) { | |
imageData = (NSData *)ABPersonCopyImageDataWithFormat(record, kABPersonImageFormatThumbnail); | |
} else { | |
imageData = (NSData *)ABPersonCopyImageData(record); | |
} |
+ (NSString *)UDIDString { | |
NSString *udid = (NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, | |
(CFStringRef)[[UIDevice currentDevice] uniqueIdentifier], | |
NULL, | |
(CFStringRef)@" !*'();:@&=+$,/?%#[]", | |
kCFStringEncodingUTF8); | |
return [udid autorelease]; | |
} |