UIScrollView Toolbar problem

Ads
 

UIScrollView Toolbar problem

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!

View Answers

December 27, 2010 at 11:43 PM

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.

Cheers!!

Ads









Related Tutorials/Questions & Answers:
UIScrollView Toolbar problem
UIScrollView Toolbar problem  Hi, I am creating a UINavigation based... the toolbar as subview on it. But my problem is ..the ScrollView type and when i am... on that view.. it showing a big gap in between the toolbar and my text labels. Please
UIScrollView Height
UIScrollView Height  How can i set the height and width of the UIScrollView according to my requirement. Actually i'm creating a login application form iPhone and using UIScrollView. Also i have number of item to add
Advertisements
uiscrollview add images
uiscrollview add images  How to add dynamic images to UIScrollView
uiscrollview background color
uiscrollview background color  Is it possible to set the uiscrollview background color in iPhone application
uiscrollview setcontentoffset animated
uiscrollview setcontentoffset animated  Hi, What is actual code to call uiscrollview setcontentoffset animated method? Thanks   Hi, Here...   when and where i should use setcontentoffset UIScrollView
uiscrollview remove all subviews
uiscrollview remove all subviews  Hi, How to remove all elements from uiscrollview. I need code for uiscrollview remove all subviews. Thanks   Hi, You can use following code in your program to remove all sub childs
Add UIImageView to UIScrollVIew
to UIScrollview? I have already created both UIIMageView and ScrollView programmatically.... See the given code it might help you... Add UIImageView to UIScrollVIew - (id) init { if(self = [super init]) { scroll = [[UIScrollView alloc
UIImageView UIScrollView Zoom
UIImageView UIScrollView Zoom   I am trying to implement a Zoomin / Zoomout feature in UIImageView and wanted to have the scroll capability init.   UIImageView *tempImage = [[UIImageView alloc]initWithImage:[UIImage
Bookmarklet Toolbar
Bookmarklet Toolbar  I Have to add a toolbar which will work as bookmarklet(bookmarklet toolbar) for the site we r developing.I have listed the req... to the toolbar of the browser. 3.If any other user,on the same machine, ,visiting on any
How to Changing Toolbar Color using iPhone Application ?
How to Changing Toolbar Color using iPhone Application ?  Hi, i have developing a small application to changing the toolbar color in iphone. But i have facing the problem that color is not changing. Can somebody suggest me
Launch of Toolbar in IE - WebSevices
Launch of Toolbar in IE  "I have created a toolbar with Java Swing I would like to know the steps about how to launch the toolbar in IE
Dojo Toolbar
Dojo Toolbar          In this section, you will learn about the toolbar and how to create a toolbar in dojo.  Try Online: Toolbar Toolbar : This is a GUI
Version of com.nikoyuwono>toolbar-panel dependency
List of Version of com.nikoyuwono>toolbar-panel dependency
ModuleNotFoundError: No module named 'accessibility-toolbar'
ModuleNotFoundError: No module named 'accessibility-toolbar'  Hi...: No module named 'accessibility-toolbar' How to remove the ModuleNotFoundError: No module named 'accessibility-toolbar' error? Thanks   Hi
ModuleNotFoundError: No module named 'cache_toolbar'
ModuleNotFoundError: No module named 'cache_toolbar'  Hi, My... 'cache_toolbar' How to remove the ModuleNotFoundError: No module named 'cache_toolbar' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'collective.flowplayer_toolbar'
ModuleNotFoundError: No module named 'collective.flowplayer_toolbar'  ...: No module named 'collective.flowplayer_toolbar' How to remove the ModuleNotFoundError: No module named 'collective.flowplayer_toolbar' error
ModuleNotFoundError: No module named 'collective.flowplayer_toolbar'
ModuleNotFoundError: No module named 'collective.flowplayer_toolbar'  ...: No module named 'collective.flowplayer_toolbar' How to remove the ModuleNotFoundError: No module named 'collective.flowplayer_toolbar' error
ModuleNotFoundError: No module named 'collective.flowplayer_toolbar'
ModuleNotFoundError: No module named 'collective.flowplayer_toolbar'  ...: No module named 'collective.flowplayer_toolbar' How to remove the ModuleNotFoundError: No module named 'collective.flowplayer_toolbar' error
ModuleNotFoundError: No module named 'memcache_toolbar'
ModuleNotFoundError: No module named 'memcache_toolbar'  Hi, My... named 'memcache_toolbar' How to remove the ModuleNotFoundError: No module named 'memcache_toolbar' error? Thanks   Hi, In your
Toolbar: Change of action - Swing AWT
Toolbar: Change of action  How do you change the action of a button in the Jtoolbar using Swing .The button in the toolbar should act as links so that when that button is clicked the corresponding page should appear
ModuleNotFoundError: No module named 'django-debug-toolbar'
ModuleNotFoundError: No module named 'django-debug-toolbar'  Hi...: No module named 'django-debug-toolbar' How to remove the ModuleNotFoundError: No module named 'django-debug-toolbar' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-debug-toolbar-alchemy'
ModuleNotFoundError: No module named 'django-debug-toolbar-alchemy'  ...: No module named 'django-debug-toolbar-alchemy' How to remove the ModuleNotFoundError: No module named 'django-debug-toolbar-alchemy' error
ModuleNotFoundError: No module named 'django-debug-toolbar-alchemy'
ModuleNotFoundError: No module named 'django-debug-toolbar-alchemy'  ...: No module named 'django-debug-toolbar-alchemy' How to remove the ModuleNotFoundError: No module named 'django-debug-toolbar-alchemy' error
ModuleNotFoundError: No module named 'django-debug-toolbar-autoreload'
ModuleNotFoundError: No module named 'django-debug-toolbar-autoreload' ...: ModuleNotFoundError: No module named 'django-debug-toolbar-autoreload' How to remove the ModuleNotFoundError: No module named 'django-debug-toolbar-autoreload' error
ModuleNotFoundError: No module named 'django-debug-toolbar-extra'
ModuleNotFoundError: No module named 'django-debug-toolbar-extra'  Hi...: No module named 'django-debug-toolbar-extra' How to remove the ModuleNotFoundError: No module named 'django-debug-toolbar-extra' error? Thanks
ModuleNotFoundError: No module named 'django-debug-toolbar-force'
ModuleNotFoundError: No module named 'django-debug-toolbar-force'  Hi...: No module named 'django-debug-toolbar-force' How to remove the ModuleNotFoundError: No module named 'django-debug-toolbar-force' error? Thanks
ModuleNotFoundError: No module named 'django-debug-toolbar-memcache'
ModuleNotFoundError: No module named 'django-debug-toolbar-memcache'  ...: No module named 'django-debug-toolbar-memcache' How to remove the ModuleNotFoundError: No module named 'django-debug-toolbar-memcache' error
ModuleNotFoundError: No module named 'django-debug-toolbar-multilang'
ModuleNotFoundError: No module named 'django-debug-toolbar-multilang' ...: No module named 'django-debug-toolbar-multilang' How to remove the ModuleNotFoundError: No module named 'django-debug-toolbar-multilang' error
ModuleNotFoundError: No module named 'django-debug-toolbar-sqlalchemy'
ModuleNotFoundError: No module named 'django-debug-toolbar-sqlalchemy' ...: ModuleNotFoundError: No module named 'django-debug-toolbar-sqlalchemy' How to remove the ModuleNotFoundError: No module named 'django-debug-toolbar-sqlalchemy' error
ModuleNotFoundError: No module named 'django-elasticsearch-debug-toolbar'
ModuleNotFoundError: No module named 'django-elasticsearch-debug-toolbar' ...: ModuleNotFoundError: No module named 'django-elasticsearch-debug-toolbar' How to remove the ModuleNotFoundError: No module named 'django-elasticsearch-debug-toolbar
ModuleNotFoundError: No module named 'django-graphiql-debug-toolbar'
ModuleNotFoundError: No module named 'django-graphiql-debug-toolbar'  ...: No module named 'django-graphiql-debug-toolbar' How to remove the ModuleNotFoundError: No module named 'django-graphiql-debug-toolbar' error

Ads