UIScrollView Toolbar problem

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!!









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
toolbar in java
toolbar in java  how we can create a toolbar like as file(open,close etc),edit(cut,copy,paste etc)...etc in a frame.   Hi Friend, Please visit the following links:ADS_TO_REPLACE_1 http://www.roseindia.net/java/example
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
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
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
UIScrollView Example iPhone
UIScrollView Example iPhone UIScrollView is the superclass of several... need UIScrollView when our text length or form size is larger then the actual... the object and property of the UIScrollView like...ADS_TO_REPLACE_1 IBOutlet
Toolbar to a browser - Java Beginners
Toolbar to a browser  How does a toolbar pluging is created... to display toolbar on the browser? Thanks  I want to create a website's toolbar from scarch and wanted to konw.. which is the evfficent way to create
Create a ToolBar
Create a ToolBar       This section illustrates you how to create a ToolBar in SWT. To create a ToolBar , we have used the class ToolBar. The method setBounds() sets the size
Dojo Toolbar
Dojo Toolbar          In this section, you will learn about the toolbar and how to create a toolbar in dojo.  Try Online: ToolbarADS_TO_REPLACE_1 Toolbar
Version of com.nikoyuwono>toolbar-panel dependency
List of Version of com.nikoyuwono>toolbar-panel dependency
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
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 '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 '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
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-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-staff-toolbar'
ModuleNotFoundError: No module named 'django-staff-toolbar'  Hi...: No module named 'django-staff-toolbar' How to remove the ModuleNotFoundError: No module named 'django-staff-toolbar' error? Thanks   Hi
ModuleNotFoundError: No module named 'flask-debug-toolbar-mongo'
ModuleNotFoundError: No module named 'flask-debug-toolbar-mongo'  Hi...: No module named 'flask-debug-toolbar-mongo' How to remove the ModuleNotFoundError: No module named 'flask-debug-toolbar-mongo' error? Thanks  
ModuleNotFoundError: No module named 'flask-debug-toolbar-mongo'
ModuleNotFoundError: No module named 'flask-debug-toolbar-mongo'  Hi...: No module named 'flask-debug-toolbar-mongo' How to remove the ModuleNotFoundError: No module named 'flask-debug-toolbar-mongo' error? Thanks  
ModuleNotFoundError: No module named 'odoo11-addon-cms-toolbar'
ModuleNotFoundError: No module named 'odoo11-addon-cms-toolbar'  Hi...: No module named 'odoo11-addon-cms-toolbar' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-cms-toolbar' error? Thanks  
ModuleNotFoundError: No module named 'odoo11-addon-cms-toolbar'
ModuleNotFoundError: No module named 'odoo11-addon-cms-toolbar'  Hi...: No module named 'odoo11-addon-cms-toolbar' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-cms-toolbar' error? Thanks  
ModuleNotFoundError: No module named 'odoo11-addon-cms-toolbar-example'
ModuleNotFoundError: No module named 'odoo11-addon-cms-toolbar-example' ...: ModuleNotFoundError: No module named 'odoo11-addon-cms-toolbar-example' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-cms-toolbar-example'
ModuleNotFoundError: No module named 'django-changelist-toolbar-admin'
ModuleNotFoundError: No module named 'django-changelist-toolbar-admin' ...: ModuleNotFoundError: No module named 'django-changelist-toolbar-admin' How to remove the ModuleNotFoundError: No module named 'django-changelist-toolbar-admin' error
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-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-mongo'
ModuleNotFoundError: No module named 'django-debug-toolbar-mongo'  Hi...: No module named 'django-debug-toolbar-mongo' How to remove the ModuleNotFoundError: No module named 'django-debug-toolbar-mongo' error? Thanks
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-requests'
ModuleNotFoundError: No module named 'django-debug-toolbar-requests'  ...: No module named 'django-debug-toolbar-requests' How to remove the ModuleNotFoundError: No module named 'django-debug-toolbar-requests' 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
ModuleNotFoundError: No module named 'django-staff-toolbar'
ModuleNotFoundError: No module named 'django-staff-toolbar'  Hi...: No module named 'django-staff-toolbar' How to remove the ModuleNotFoundError: No module named 'django-staff-toolbar' error? Thanks   Hi
ModuleNotFoundError: No module named 'flask-debug-toolbar-mongo'
ModuleNotFoundError: No module named 'flask-debug-toolbar-mongo'  Hi...: No module named 'flask-debug-toolbar-mongo' How to remove the ModuleNotFoundError: No module named 'flask-debug-toolbar-mongo' error? Thanks  
Maven Dependency toolbar-panel >> 0.1
You should include the dependency code given in this page to add Maven Dependency of com.nikoyuwono >> toolbar-panel version0.1 in your project
iPhone Segments Changes ToolBar And ToolBar Button
iPhone Segments Changes ToolBar And ToolBar Button In this tutorial will learn how to use the Segmented Controller to change the ToolBar Style and also by another Segmented Controller will change the ToolBar Button Style, this is View

Ads