Created
May 1, 2013 08:25
-
-
Save kenshin03/5494312 to your computer and use it in GitHub Desktop.
comments view controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(IBAction)commentButtonTapped:(id)sender { | |
| if (self.commentsPostingView.hidden == YES){ | |
| if (self.commentsViewController != nil){ | |
| self.commentsViewController = nil; | |
| [self.commentsViewController.view removeFromSuperview]; | |
| [self.commentsViewController removeFromParentViewController]; | |
| } | |
| self.commentsViewController = [[PSHCommentsViewController alloc] init]; | |
| self.commentsViewController.delegate = self; | |
| self.commentsViewController.feedItemGraphID = self.feedItemGraphID; | |
| [self addChildViewController:self.commentsViewController]; | |
| [self.commentsPostingView addSubview:self.commentsViewController.view]; | |
| [self animateShowCommentsPostingView]; | |
| }else{ | |
| [self animateHideCommentsPostingView]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment