This is my second day of learning ios programming with xcode - so this should be an easy quwstion - just that I can't figure it out.

I am using StoryBoards and an UITabViewController with 3 tab items. On the second tab I would like to start the camera, whenever the user selects that tab.

How can I detect that the second view is activated? Is there an event triggered in such cases?

有帮助吗?

解决方案

You can also use your ViewController's viewDidLoad method. Do whatever you need to in this method:

- (void)viewDidLoad
{
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top