The SCFacebook 4.0 is a simple and cleaner to use the api Facebook-ios-sdk with Blocks.
Need:
FBSDKCoreKit
FBSDKShareKit
FBSDKLoginKit
CGAffineTransform textFieldTranslationTransform; textFieldTranslationTransform = CGAffineTransformMakeTranslation(0, -165);
[_textFieldsArray enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { UITextField *tField = (UITextField *)obj; [UIView animateWithDuration:0.9 delay:0.05 * (double)idx usingSpringWithDamping:0.5 initialSpringVelocity:0 options:UIViewAnimationOptionCurveLinear animations:^{ tField.center = CGPointApplyAffineTransform(tField.center, textFieldTranslationTransform); } completion:nil]; }];
UIBAlertView *timesheetsSubmited = [[UIBAlertView alloc] initWithTitle:@"Title" message:@"message" cancelButtonTitle:@"cancel" otherButtonTitles:@"ok", nil]; [timesheetsSubmited showWithDismissHandler:^(NSInteger selectedIndex, NSString *selectedTitle, BOOL didCancel) { if (selectedIndex == 1) { //code } }];