Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Mobile-Applications UIScrollView Toolbar problem
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


meeya
UIScrollView Toolbar problem
1 Answer(s)      3 years and 10 months ago
Posted in : MobileApplications


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!


Advertisement
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
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: http://www.roseindia.net/java/example/java/swing
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
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
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
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
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
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
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
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... IBOutlet UIScrollView *mscrollview
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
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
Create a ToolBar in Java
Create a ToolBar in Java       In this section, you will learn how to create toolbar in java.... Toolbar is a area which is situated inside the main window of any applications
common Menu bar(toolBar) at the top of all view
common Menu bar(toolBar) at the top of all view  I creat on login page and after sign in I move to next page. Now I want to add menu bar at the top of my all view. Any one have any idea abt how to do
iPhone Picker Object On Toolbar Button
iPhone Picker Object On Toolbar Button In this tutorial will learn how to use Picker view, also the Toolbar and on that will place Toolbar button... is added to view from Library and Toolbar is created using code not by Interface
iPhone Switch Changes Toolbar Color
iPhone Switch Changes Toolbar Color In this tutorial we will use Switch button to change the Color of Toolbar. The Switch is added through the Interface Builder and the Toolbar is created by coding, the project is based on View Based
How many types of drawing objects are available in drawing toolbar
How many types of drawing objects are available in drawing toolbar  How many types of drawing objects are available in drawing toolbar
Canvas placing problem
Canvas placing problem  how to place a canvas in swt under a toolbar
logout problem
me out of this... the problem is -- when i logout , the user goes... he has come from .. please get me out of this problem thanks.   Use...() { window.location.replace("logout.jsp",'window','toolbar=1,location=1,directories=1,status=1,menubar
Dojo Toolbar
Dojo Toolbar        ... the toolbar and how to create a toolbar in dojo.  Toolbar : This is a GUI... container for buttons. In the toolbar contains button-based Dijit, including
Dojo Toolbar
Dojo Toolbar        ... the toolbar and how to create a toolbar in dojo.  Toolbar : This is a GUI... container for buttons. In the toolbar contains button-based Dijit, including
problem in onlinetest...
problem in onlinetest...  hi, my code getting the problem is ,when user leave a question then the server puts error... pls help me
javascript problem
javascript problem  hi guys My problem is that I am using radio button for yes or no but i want to do that if I press yes button then enter... enter please help me this problem
problem in validation
problem in validation  sir/madam, i m using struts-1.3.10. i m getting a problem my properties file is not found.... while i hav configuired it in struts-config.xml file, like thanks n regards himanshu
Problem with loginbean.jsp
Problem with loginbean.jsp  http://www.roseindia.net/jsp/loginbean.shtml - I am getting an error in loginbean.jsp.There is some error regarding .What is hello in this? Also in this example how
 

 

 

DMCA.com