I think have decent experience working with iPhone development.
as much I know.. I did set up the delegate..
I have from top to botton
UIView --> UIScrollView--> UITextView
I tried everything... to get the event scrollView to fire the scrollViewDidScroll event.
is anything wrong with the structure..
there not much of the code to post...
Hi!
I have scrollView added in xib & i am adding an imageview to it programmatically.Now I am not able to detect touch event on this imageview though i have enabled userinteraction for imageview.Actually I want to use the location where the imageview was touched.
...
hello all.Am facing a probem with my scrollview.Am displaying the image in a scrollview programatically and i added the zooming and paning effects.When i run the application image is displaying in the scroll view but it is not in centre(like it is displaying at right corner and some part of image is inside the scrollview)After zooming wh...
This is pretty simple but I cannot figure it out. I am trying to display an image which you can simply slide around the screen. For some reason however, i'm simply getting a white background.
header
#import <UIKit/UIKit.h>
@interface ScrolliPadViewController : UIViewController {
UIImageView *imageView;
}
@end
...
Hi folks,
i have two UIImageViews as childs in one UISCrollView. You can flip sideways to display pages of a brochure. (12 Pages).
Now i wanted to zoom pages. I couldn't get it up till now to zoom the right ImageView.
I know i have to implement
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView {
return someView
...
This is perplexing to me. I want to change the frame of a UIScrollView upon orientation change:
if (orientation == UIDeviceOrientationLandscapeLeft || orientation == UIDeviceOrientationLandscapeRight){
self.myScrollView.frame = CGRectMake(40, 40, 984, 200);
for (UIView* view in [self.myScrollView subviews]){
...
Hi everybody!
I have a view that contains a ScrollView opening two xibs.
There is a button on a Xib contained in ScrollView.
I want that after clicking the button, open a new view outside of the ScrollView.
But I can not open a new view outside the Scrollview. = /
Any suggestions?
Thanks.
...
Hello,
I have a view (nib) loading offscreen in a uiscrollview. I want the movie in this view to only start playing once it is visible but the viewdidappear fires even the view is off screen. So the movie is playing even though you can't see it.
Is there a way to understand what view is actually visible that does not involve the uiscro...
Ben send me a tutorial about displaying several images in a scrollView. ( http://kwigbo.com/post/758575763/uiscrollview-image-gallery-tutorial )
I made it to adopt it to my need in an IPad App and i got it to work so far.
BUT ... I'm banging my head for hours now to implement zooming images and couldn't make it work.
I have a UIScrol...
Hi everyone,
I'm trying to make my own custom UIScrollView for some reason. The question is, is it possible to exactly mimic the event handling behavior of UIScrollView including 'delayed content touches' and 'cancellable content touches'? That is, the custom scroll view should delay handling the event until it can determine if scrollin...
Hi,
I want to detect the touch (CGPoint) of a scroll view in its content size .If i detect the touch in the scroll i get the CGPoint only with reference to the scroll view frame but i want the position with reference to content size.
Here is my code
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch* t;
NSLog(@"...
This is very odd and I'm wondering if anyone has any thoughts?
I'm trying to scroll a UIScrollView in response to a button press on the iPad.
If I do:
CGPoint currentOff = scrollView.contentOffset;
currentOff.x+=240;
[scrollView setContentOffset:currentOff animated: NO];
The scroll view jumps to the required position as expected...
Hello - I am using a scroll view to display a CATiledView of some large images. When the user leaves the app, then comes back, I would like the app to automatically scroll and zoom to the place where the user was when the left the app.
I am getting the zoomLevel saved, but I cant figure out how to save the scroll position then have it ...
Hi,I want to use a very large segmentedcontrol component so i had the idea to make it in a uiscrollview ..so by scrolling horizontally user can choose the appropriate item .
i wrote this code:
CGRect rect = [[UIScreen mainScreen] applicationFrame];
CGRect frame = CGRectMake(rect.origin.x + kLeftMargin, rect.size.height - kPale...
Hey
Just wondering what the best way to find out what page you're on in a paged scroll view.
At the moment I have this:
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
float page = scrollView.contentSize.width / scrollView.contentOffset.x;
}
is this the only way? Or am I missing some simple scrollView.page proper...
Hi All,
Could somebody advice which formula used to content offset calculation after zoom in UIScrollView? Let's consider following example:
I have a UIScrollView with content view in size (1000, 1000), then if I programmatically setZoomScale to 2.0 and in scrollViewDidEndZooming:withView:atScale method I will have the following:
conte...
Hi everyone,
I created a UIScrollView / UIPageControl .xib scrolling between 12 images. At the bottom of the .xib is a "Submit" button that would save the value of the scroll view in a web service.
How can I get the "submit" button to grab that value?
Thanks in advance!
...
I have a run of about 10 different methods, they all pass "page" and "index" between them in order to define a ScrollView with multiple pages. The majority of these methods run within a loop (for each page).
I'm working on a way to re-orient and re-position the pages depending on the device orientation. My trouble now is trying to get a...
Hi guys,
I got a small problem with my UIScrollView. I've added the scrollview to my UIView with Interface Builder. I've also added a UIToolbar as a subView (programmatically if it matters) to the view.
Now, my problem is that the scrollview scrolls under the UIToolbar. It doesn't "stop" at the top of the toolbar as it should to. It w...
Hello,
i crawled all the web, but nothing.
I have a for loop to create uiimageview inside a uiscrollview controller.
It's a collection of images that you can scroll horizontally only.
for (int i = 0; i < NIMAGES; i++) {
NSString *filename = [NSString stringWithFormat:@"image%d.png", i+1];
ScrollerImage *iv = [[ScrollerImage all...