PDA

View Full Version : How to open new .xib on UIButton click




dolphia
May 26, 2011, 04:42 AM
How can I open a new .xib from UIButton Click..no complexity..simply opening a new window



dantastic
May 26, 2011, 05:11 AM
An xib is just a description of what a view looks like. It has no logic or anything. You probably want to present a viewcontroller of sorts onto your stack. This may be presenting a view controller modally, push a view on to the stack.

Have a look here: http://timneill.net/2010/09/modal-view-controller-example-part-1/

jnoxx
May 26, 2011, 06:54 AM
U have to present a UIViewController, which has a XIB.