小编Gon*_*han的帖子

/*和/**之间的区别

我发现,在日食中,

/*
 * Hello world, this is green.
 *
 */
Run Code Online (Sandbox Code Playgroud)

评论将是绿色的.然而,

/**
 * Hello moon, this is blue.
 *
 */
Run Code Online (Sandbox Code Playgroud)

如果我使用/**,它将变为蓝色.所以为什么?有什么区别?

java eclipse

11
推荐指数
1
解决办法
5014
查看次数

解除模态视图时未调用ViewDidAppear

首先,我创建一个MainViewController.然后在MainViewController中,我这样做

[self presentViewController:modalViewController animated:YES completion:nil];
modalViewController.modalPresentationStyle = UIModalPresentationFormSheet;
Run Code Online (Sandbox Code Playgroud)

当我关闭modalViewController时,On iPhone(iPhone 6+除外),调用MainViewController的viewDidAppear.在iPad和iPhone 6+上,不调用MainViewController的viewDidAppear.

逻辑是在解除modalViewController时调用一个函数.我如何知道modalViewController何时被解除.

iphone objective-c viewcontroller modalviewcontroller ios

9
推荐指数
1
解决办法
9504
查看次数