Ios 隐藏/关闭视图控制器
我的iPhone项目中有一个Popover: 当我点击一个小图片时会显示:Ios 隐藏/关闭视图控制器,ios,objective-c,uiview,popover,Ios,Objective C,Uiview,Popover,我的iPhone项目中有一个Popover: 当我点击一个小图片时会显示: -(void)tapDetected:(UITapGestureRecognizer *)sender { UIImageView *iboImageView = sender.view; UITableView *tableView = (UITableView *)iboTableView; NSIndexPath *index = [NSIndexPath indexPathWithInd
-(void)tapDetected:(UITapGestureRecognizer *)sender
{
UIImageView *iboImageView = sender.view;
UITableView *tableView = (UITableView *)iboTableView;
NSIndexPath *index = [NSIndexPath indexPathWithIndex:iboImageView.tag];
MovieCell *cell = (MovieCell *)[tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:iboImageView.tag inSection:0]];
[ApplicationManager getInstance].currentMovie=cell.nameLabel.text;
DemoTableController *controller = [[DemoTableController alloc] initWithStyle:UITableViewStylePlain]; //This is my popover controller (what is displayed inside popover )
FPPopoverController *popover = [[FPPopoverController alloc] initWithViewController:controller];
popover.contentSize = CGSizeMake(150,158);
[popover presentPopoverFromView:cell.iboPopImage];
}
当我按下一个单元格时,我想把它折叠起来。FPPopoverController.h文件中是否有类似于
self.close
?的内容:
/** @brief Dismiss the popover **/
-(void)dismissPopoverAnimated:(BOOL)animated;
/** @brief Dismiss the popover with completion block for post-animation cleanup **/
typedef void (^FPPopoverCompletion)();
-(void)dismissPopoverAnimated:(BOOL)animated completion:(FPPopoverCompletion)completionBlock;
使用以下任一方法解除控制器。从FPPopoverController.h文件:
/** @brief Dismiss the popover **/
-(void)dismissPopoverAnimated:(BOOL)animated;
/** @brief Dismiss the popover with completion block for post-animation cleanup **/
typedef void (^FPPopoverCompletion)();
-(void)dismissPopoverAnimated:(BOOL)animated completion:(FPPopoverCompletion)completionBlock;
使用以下任一方法解除控制器。从FPPopoverController.h文件:
/** @brief Dismiss the popover **/
-(void)dismissPopoverAnimated:(BOOL)animated;
/** @brief Dismiss the popover with completion block for post-animation cleanup **/
typedef void (^FPPopoverCompletion)();
-(void)dismissPopoverAnimated:(BOOL)animated completion:(FPPopoverCompletion)completionBlock;
使用以下任一方法解除控制器。从FPPopoverController.h文件:
/** @brief Dismiss the popover **/
-(void)dismissPopoverAnimated:(BOOL)animated;
/** @brief Dismiss the popover with completion block for post-animation cleanup **/
typedef void (^FPPopoverCompletion)();
-(void)dismissPopoverAnimated:(BOOL)animated completion:(FPPopoverCompletion)completionBlock;
使用这些方法中的任何一种关闭控制器。您需要查看您正在使用的
FPPOPCovercontroller
库…您需要查看您正在使用的FPPOPCovercontroller
库…您需要查看您正在使用的FPPOPCovercontroller
库…您需要查看FPPopoverController
您正在使用的库。。。