Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/106.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 隐藏/关闭视图控制器_Ios_Objective C_Uiview_Popover - Fatal编程技术网

Ios 隐藏/关闭视图控制器

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

我的iPhone项目中有一个Popover:

当我点击一个小图片时会显示:

-(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
您正在使用的库。。。