Tagged Questions
45
votes
15answers
23k views
Center content of UIScrollView when smaller
I have an UIImageView inside a UIScrollView which I use for zooming and scrolling. If the image/content of the scroll view if bigger than the scroll view everything works fine. However, when the image ...
14
votes
3answers
6k views
Embed ImageView in ScrollView with Auto Layout on iOS 6
I am trying to make very simple element with new iOS 6 SDK with auto layout.
I have an ImageView and Embed it in ScrollView. (everything build with Interface Builder). The .png file is set and ...
14
votes
6answers
35k views
How do I center a UIImageView within a full-screen UIScrollView?
In my application, I would like to present the user with a full-screen photo viewer much like the one used in the Photos app. This is just for a single photo and as such should be quite simple. I just ...
7
votes
1answer
2k views
UIScrollView phantom subviews
I am loading a view from a nib file using:
NSArray *nibViews = [[NSBundle mainBundle] loadNibNamed:@"AnalysisView" owner:self options:nil];
AnalysisView *gridView = [nibViews objectAtIndex: 0];
The ...
6
votes
7answers
12k views
iOS - UIScrollView is not working (it doesn't scroll at all - the image stays fixed)
I would like to display an image (width: 320 pixels, height: 1250 pixels) in an image view.
When I compile the application I get no scrolling at all. The view stays fixed.
What I did:
Added an ...
6
votes
1answer
6k views
iPhone SDK: UIScrollView does not scroll
I just can't get my scroll view to actually scroll.. Everything displays fine except it just won't scroll..... Here's my code:
- (void)viewDidLoad {
[super viewDidLoad];
UIScrollView ...
5
votes
3answers
12k views
iphone uiscrollview and uiimageview - setting initial zoom
I use the following code to load an image into an scroll view. The image always loads at 100% zoom. Is there a way to set it to load to another zoom level, say .37?
I have tried scrollView.zoomScale ...
5
votes
1answer
4k views
Detect single tap on UIScrollView containing 'n' UIImageViews
I am simply trying to get hold of the UIImageView that was tapped on, from the UIScrollView.
I have found 2 ways of achieving the above on the Web.
1st method : create a tap gesture on the ...
5
votes
6answers
8k views
Center UIImageView inside UIScrollView without contentInset?
I have been unable to find the answer for this issue I am having.
I have a UIImageView inside a UIScrollView, and I would like the center its content vertically.
Right now, the only way I have been ...
5
votes
2answers
688 views
Strange UIImageView in UIScrollView
Very strange behavior, there is a round dot in the center of the screen using this code, and a UIScrollview with nothing inside in a nib. I expect that UIScrollview should be empty. The dot blurs and ...
4
votes
3answers
8k views
UITapGestureRecognizer
I check out Apple's ScrollView suite example code. When i use it in my code then it not working while i had not made any change.I was just wondering how I cannot get a double tap to undo the zoom ...
4
votes
1answer
6k views
UITapGestureRecognizer in UIScrollView subview
I'm trying to use a single tap recognizer in an imageView (that is also a scrollView child).
In Interface Builder I've created and referentiated the scrollView only.
Works the scrolling but the single ...
4
votes
3answers
2k views
Why does touchesBegan stop working when UIImageView in placed inside a UIScrollView?
UIView -> UIImageView
I know I have things somewhat working ok since I can tap on my UIImageView and see an NSLog() statement in my touchesBegan method.
.
UIView -> UIScrollView -> ...
4
votes
1answer
3k views
UIScrollView with many UIImageViews - Memory problem
I have this huge problem with memory management.
I have been googling for 8+ hours, with no success...
The problem:
I've got a UIScrollView, I've got an Array with 24 paths to Images in it and I ...
4
votes
1answer
676 views
Help - Scaling CAShapeLayer (i.e. path) in UIScrollView
I have a problem and I hope you can help me with it. This is for iPad by the way.
I have a UIScrollView, UIImageView, CAShapeLayer, and a CGMutablePathRef.
1- So, I loaded an Image in the ...