Hi, I am creating a UINavigation based application in which i already hide the navigation controller and added the toolbar as subview on it. But my problem is ..the ScrollView type and when i am adding labels or buttons on it, it showing certain gap between uitoolbar and my first label. i have more then 10 labels on the same view that's why i used scroll view. Now, whenever i switch from that view to another view and comes back on that view.. it showing a big gap in between the toolbar and my text labels. Please suggest..
Thanks in Advance!
First of all in your UIView drag and drop the uiscrollview set the length as 320*460 Now, add the UIToolBar on it.. create the outlet and connect to file owner.
In your view did load method or viewWillApear method just add the given lines of code.
CGRect scrollFrame = yourScrollViewObject.frame; scrollFrame.size.height = scrollFrame.size.height - myToolbar.frame.size.height; yourScrollViewObject.frame = scrollFrame;
set the "y" coordinate of scrollview to 50 or as needed. Hope it'll work.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.