Ios: view with UIScrollView and UIView?

Up vote 0 down vote favorite share g+ share fb share tw.

I have a view with a UIScrollView covering 3/4 of the screen, and the rest of the items are added as a subview to self (UIControl). Look below, (Container class inherits from UIControl). @interface MyView : Container { Checkbox* ch1; UITextField *name, *email; UIWebView *info; UIScrollView *scroll }; Now... I am adding the webview's content to the scroll view, and the rest of the items are added as subviews to self: | | |scrollview | |___________| | | |tf1 tf2 ch1| tf1 = textfield1, tf2 = textfield2, ch1 checkbox1; ------------- The soft keyboard hides tf1 in editing mode.

Since I have tf1, tf2 and ch1 added as subviews, I want to shift the whole view together when any of the text is in editing mode. Do I need to create another UIView and add these subviews to it, or can this be done without that? Objective-c ios uiview uiscrollview uitextfield link|improve this question edited Feb 1 at 19:45jrtc273,7251529 asked Feb 1 at 6:23Rakesh Singh787 91% accept rate.

– jrtc27 Feb 1 at 19:45 I want to shift the view, when UItextFileds are in edit mode so that they don't get hidden by keyboard invocation. – Rakesh Singh 27 Feb3 at 21:22 Surely then part of the scroll view is inaccessible? – jrtc27 Feb 1 at 22:10 The lower part is UIImageview of email and mail box, I am defining Textfield in the same frame.

– Rakesh Singh 27 Feb3 at 6:22 Still not quite sure - could you do a quick sketch in gimp/photoshop to show the behaviour? – jrtc27 Feb 2 at 7:16.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions