Tuesday, December 31, 2013

Interface switching problems .. who can help me.

Brother just started iPhone development
Today a small demo
a multi-interface switchingPreviously just a simple interface switching.
[Img = http://hi.csdn.net/space-5591816-do-album-picid-759628-goto-down.html] [/ img]


Now the current interface is a view view.
NavigationItem Action and More is dragged up from the library.
And then connected to the inside of the event.

Now I created a nib view when the point is you can switch out more.
Now I'm having trouble switching the interface.

- (IBAction) viewSwitch: (id) sender {
[Self.view removeFromSuperview];

AnotherController * anotherController =
[[AnotherController alloc]
initWithNibName: @ "AnotherView" bundle: nil];


[Self.view insertSubview: anotherController atIndex: 0];

}
A program executed last insetSubview died / / /

Switching between the view and the view there any good way to do?
We sincerely to learn
Reply:

Reply:
Because there is no whole project, it is difficult to speculate the reasons, but please put the following sentence

AnotherController * anotherController =
[[AnotherController alloc]
initWithNibName: @ "AnotherView" bundle: nil ];

Replaced.
AnotherController * anotherController =
[[AnotherController alloc]
initWithNibName: @ "AnotherView" bundle : [NSBundle mainBundle]];
Reply:
In addition, your interface switching, I guess to be able to view a view b, as the use of basic animation looks great, specifically the apple developer official website to find, BubbleLevel

Reply:
reference to the third floor nicktang reply:
addition, your interface switching, I guess to be able to view a view b, as the use of basic animation the effect will be very good, specifically the apple developer official website to find, BubbleLevel


Ah 是 view a go, but a view b which is embedded in TabBarController
Reply:
Please send the code to the mailbox, nicktc78@hotmail.com, tomorrow should be free to help you look.
Reply:
references, 5th Floor nicktang reply:
please send the code to the mailbox, nicktc78@hotmail.com, tomorrow should be free to help you look.


Has been sent Thank you

No comments:

Post a Comment