IBOutlet UIView *view2;
@property (nonatomic, retain) IBOutlet UIView *view2;
IBOutlet UIView *view2;
@property (nonatomic, retain) IBOutlet UIView *view2;
#pragma mark - Flip screen
- (void)flipAction:(id)sender
{
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector
(animationDidStop:animationIDfinished:finished:context:)];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.75];
[UIView setAnimationTransition:([self.tableView superview] ? UIViewAnimationTransitionFlipFromLeft UIViewAnimationTransitionFlipFromRight)
forView:self.tableView cache:YES];
if ([instructionsView superview])
[instructionsView removeFromSuperview];
else
[self.tableView addSubview:instructionsView];
[UIView commitAnimations];
// adjust our done/info buttons accordingly
if ([instructionsView superview] == self.tableView)
self.navigationItem.rightBarButtonItem = doneButton;
else
self.navigationItem.rightBarButtonItem = flipButton;
}
스프링노트에서 문서 올리기 테스트 중입니다. .. 이문서는 완료 되지 않았습니다.
http://www.otierney.net/objective-c.html(영문)
이 글은 스프링노트에서 작성되었습니다.