Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ipad storyboard in xcode cannot drag button

I'm running xcode 4.5.2 to write an iOS app for both iphone & ipad ("universal" app).

I'm able to use the iphone storyboard to drag & drop buttons, labels, etc onto it. In fact I have functioning code on the iphone side.

However, since the beginning, I have not been able to drag & drop anything onto the ipad storyboard. When I try to do so the buttons, labels, etc just "bounce off".

Is there a way to reset the iPad storyboard so that I can get a clean start? It potentially could be that I had mistakenly (this is my very first iOS app) dragged a view or view controller onto the ipad story board. I tried deleting it but the whole ipad storyboard disappears after that.

It is probably something very simple but I'm very new to this. Thanks.

like image 628
rockhammer Avatar asked Nov 23 '12 21:11

rockhammer


1 Answers

You can only drag & drop items into a view if you are in the most "zoomed-in" way of viewing it. Try pressing the "=" in the bottom right corner when you bring up your iPad storyboard (this will toggle between the most zoomed-in and the most previous zoom out). Once it zooms you in all the way, try dropping something onto your view again.

EDIT: Per Xcode 8 Release Notes, Interface Builder should now allow editing at all zoom levels.

like image 111
GeneralMike Avatar answered Oct 26 '22 18:10

GeneralMike