UIScrollView disappears from Builder interface?

I have a 3.1 interface constructor, but I don't see that the UIScrollView and UIAlertView are missing something there, how can I get them in the interface builder. I want a view with 50 shortcuts and I want to add them via Interface Builder without using code, please help ...

+1


a source to share


1 answer


UIAlertView is a modal dialog that runs inside code, so it's not very useful to customize it in Interface Builder. To create an alert, use code similar to the following:

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error message" message:@"Error description" delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
[alert release];                    

      



The UIScrollView is right in the Interface Builder library. I don't know why you can't see it. Its icon is an empty white view with a gray scroller on the right side. Even adding such a view to your interface, you may still need to set some parameters in your code to get the scrolling to work properly.

As a conceptual comment, if you want 50 labels to be scrolled, I think you might be better off using a UITableView.

+3


a source







All Articles