English 中文(简体)
是否应当从父母或子女观点主计长那里传来。
原标题:Should popViewController be called from the parent or child ViewController?

我可以通过打上<代码>的密码:纳维格思·科普勒[自上] 要么由父母亲眼看管,要么由儿童看管人自己。 哪一种方式更可取?

最佳回答

回答是“谁最有意义”的;正如你所说的那样,你可以打电话popViewController Animated:, 或者甚至可以指导航控制器的其他某些类别。

大部分情况下,儿童的意见将包含一种“后退”或“后退”的 but子,或者其他一些行动,从而导致儿童被pop。 总的来说,我要说的是,这是一种较好的行为:儿童认为控制者自己流行。

Otherwise, the child would have to call out to the parent (via a delegate or something) to say "pop!" which would then call popViewControllerAnimated:. This feels a little too convoluted for such a simple action.

问题回答

暂无回答




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签