uiscrollview

How can I check whether a subview exists at a certain frame in UIScrollView?

I have a UIScrollView with a big contentSize of around 5000*5000. I have the coordinates and the frame of a subview. I want to check whether a subview exists at that exact position in UIScrollView. If no. I will add a new subView and if Yes I will not add. Can anyone help? ...

How to implement UIScrollView with 1000+ subviews ?

I am struggling with writing portion of an app which should behave like the native iphone photo app. Looked at iphone sdk app development book from Orielly which gave an example code for implementing this so-called page-flicking. The code there first created all subviews and then hide/unhide them. At a given time only 3 subviews are visi...

XCode iPhone: hiding UIToolbar in parent UIViewController from child UIScrollView

I have a project similar to Apple's PageControl example. I have a UIViewController "PhotoViewController" which contains a UIScrollView and a UIToolbar. The UIScrollView loads another XIB and UIViewController "PhotoScrollViewController". In PhotoScrollViewController, I have a UIButton which displays an image. I have an IBAction on thi...

tableView resize problem when pushing another view while keyboard is showing

I have a tableview controller under a navigation controller. Some of my table cells contain text fields, so when I tap on them, a keyboard will show up and automatically resize (shrink) the bounds of my tableview. The bounds is then restored when the keyboard is dismissed programmatically by calling resignFirstResponder on my text field....

ScrollView with scrollViews - what is the right way to do it?

Hello! Client wants some tricky stuff and i don't really know where to start with it. The idea is that there is a horizontal scrollView whose each page consists of a vertical scrollView. For example, on the horizontal axis there are galleries, on the vertical we scroll through selected gallery's images. Is this even possible? I'd be ve...

UIScrollview+UItextview touch event

hi i am using a scroll view and that scroll view i have UIIMageview and UITextview.My Question is -i want the Touchevent of Textview. ...

How to add a UIViewController view on UIScrollView

Hi All. I have a small problem in loading the UIViewController on scroll view. In my application, I am using 4 tab buttons at the bottom. One of which contains a scroll view, as number of fields in that view are more. One of the field is for accepting the date from the user. When I am adding this Date Picker View(UIViewController) on ...

How can I get scrollViewDidScrollToTop to work in a uiTableView?

I think the title explains it all. I want to be notified when a user scrolls to the top of a tableview. I've tried the following with no luck and even added a UIScrollViewDelegate to the .h file. - (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView{ NSLog(@"ScrolledToTop"); } Thanks! Edit: I can get it to call if I press ...

zoomToRect does nothing if your UIScrollView is already at that zoomlevel

I think I have found a bug in UIScrollView, but I want to check if other people are observing the same thing and if it is expected behaviour. I've got a UIScrollView and am trying to set what it is looking at using zoomToRect. That works fine. If I then drag the view so it's looking elsewhere and then trigger the zoomToRect with the sam...

how to add text and images together

hi, im developing a notebook based application. it consists of notes and images also. im unable to find best way of coding to add images and text together. it is also editable, so im getting confused whether to take scroll-view or text view. is i taken scroll-view there is no editable option. if i take text view we can't change frames o...

how to add more than 100 uiimageviews in uiscrollview

i have an uiscrollview and i add one by one uiimageviews but when i add more than 40 objects i have problem with memory i guess and the app crashes...what should i do? i am trying to make an app like photo viewer from apple! Help please! i do not want thumbnais i just want to show the next image when the user flick from one to another b...

Uiscrollview by default left to right?

i have an uiscrollview with an imageview. the user can flick on the uiscrollview from right to left. can i make the user flick from left to right on the uiscrollview? ...

Uiscrollview issue help!

i have an uiscrollview and i add 3 imageviews. i want to show the user the middle(second) image as the startup imageview. how is this possible? ...

Autoresize UITextView and UIScrollView

Hello guys, I already did several searches on Stack Overflow and Google, but I couldn't find a solution to my problem. I have a Detail View for a product that includes a UIScrollView and a few subviews (UIImageView, UILabel, UITextView). You can find an example here. First I wanna autoresize the UITextView (not the text itself!) to the...

UIScrollView - Input outwith visible area

I have a UIScrollView to which I add a bunch of UIImageView's as sub views. Everything works fine apart from that I get input from the subviews when they are outwith the visible area of the scroll view. I would have thought the scroll view would prevent any events from reaching subviews outwith the visible area by default but I presume t...

Getting size of the text in a UITextView

Hi, I'm trying to use a UIScrollView as a UITextView, except it will have a logo at the top (thus I can not use UITextView directly). In other words; I will have a UIScrollView with a UIImage and a UITextView in it. The content for the textView is localized and liable to change, so I can not hardcode the height of it. Is there any way ...

Iphone UIScrollView and multiple visible images

Hi! Im trying to implement a UIScrollView including multiple images, using paginate. The problem is that I want more then one page to be visible in the UIScrollView, but only one page should be selected. I found several solutions in which you handle touch down/up (touchesBegan and touchesEnded) myself and scrollRectToVisible, but I wa...

Double Tap inside UIScrollView to Another View

I want to preface this question with the fact I am new to the iphone application development and many times believe I may be over my head. I am trying to find an action that will allow me to double tap anywhere within my full screen UIScrollView to return to my main menu (MainMenuViewController). I currently have the following code runn...

iPhone UIScrollView / setContentOffset weirdness

Hi, I have a weird issue with setContentOffset which I don't seem to be able to solve: I'm trying to build an "endless" scroll view, so I'd like to reset the content offset at a certain position. With the code below setContentOffset will be called at x=160px. If I drag the scroll view my log looks like this: offset: 158 offset: 159 o...

UIScrollView + UIWebView = NO scrollsToTop

It looks like a problem which could have simple solution, but I haven't found anything what could lead the way to it. I'm using UIWebView inside of UIScrollView and tapping on statusBar (to scroll content to top) is not working. I've made simple test application to see if it's really UIWebViews fault. And it really is. // scrolls to t...