uiscrollview

Scrolling background for Map/Dungeon View in RPG

Hello! I am currently developing an RPG without using OpenGL, and I'd like to keep it that way. Is it possible for me to have a background scroll like it does in the old Final Fantasy games using IB's UIScrollView? And then to have the background remain centered upon the player sprite? If it is possible, that would be terrific! Any co...

getting image size when image zoomed by user

how can i get the image size when it's zoomed by user, i write these on my project : - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return imageView; } -(void) didLoad{ UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image.jpg"]]; self.imageView = tempImageView; [tempI...

For iOS, issue "talking" to frame and bounds elements of UIView and decendents

Greetings all - I am having an issue assigning a value to an existing UIScrollView. In response to an Orientation change, I am re-orienting and sizing the ScrollView and the UIImageViews I have contained within. I can set the UIScrollView's frame: CGRect wideThumbFrame = CGRectMake(0.0, 530.0, 1024, 190.0); thumbScrollView.fra...

Do I need to remove subviews that aren't visible in UIScrollView to keep it running smoothly?

I'm working on making a special UIScrollView to show a timeline of events, (Like a gantt chart if you're familiar with such things) and there could potentially be dozens of these events, some visible and some not at different times. What I'm wondering is this: should I make an implementation similar to UITableView to remove the items th...

UIScrollView doesn't remember the position

Has anyone ever had the problem that a UIScrollView, which gets moved by [UIScrollView setContentOffset:...] doesn't "remember" it's new position? It however does, if the user scrolls via touch-and-drag. Symptoms: If the UIScrollView doesn't remember the new position, it "flips" back to the original position it last remembers (which is ...

UITableView horizontal scroll indicator

I have a table view inside a navigation controller, which is one view for a tab bar. Everytime I launch the app, the horizontal scroll indicator flashes briefly when i select this tab. Could this be related to the initial tab selected, which does contain a scrollview? I was under the impression that table views couldn't scroll horizo...

ScrollView not scrolling when dragging on buttons

I have a scroll view that used to scroll when it didn't have buttons all over it. Now it does, and when dragging the mouse (on simulator) nothing happens (i think because the buttons are being pushed). How can I make this right? ...

automatic scroll : how to scroll images one by one in scroll view automatically

hi all. I am making an image application. In that I am moving images one by one. I am also showing image thumbnail at the bottom of screen in scroll view. My problem is when I change the image on touch in main image view, the thumbnail image should highlighted. If again changing the main view image the next thumbnail image should be hi...

UIScrollView in UITabBarController

Hi all, thanks in advance, i am developing an application by using Tab Bar application, with navigation controller. In first view controller i am displaying table view, after selecting the cell, it will navigates to another view controller, there i have to use UIScrollView. in scroll view i have taken the frame width and height is 32...

problem with zoom in UIScrollView on iOS 4.0

Hi, This is a general question to a specific problem. I am using a UIScrollView in an app that displays photographs. on iOS < 4.0, zooming works great. the same app running on iOS 4.0.x has problems zooming. specifically, if the image does not fill the view (and black bands appear at top/bottom), the first zoom is jerky and garbage dat...

How do you combine UIScrollview with UIPagecontrol to show different views?

I've searched and searched for a tutorial for this but none of them are what I'm looking for. I've tried Apple's sample but it is just colors and I don't know how to make it views. All I'm looking for is a screen that will page while showing the page control. Each time the scroll view pages i want it to show a completely different view. ...

UIActionSheet positioning problem within ScrollView

I'm trying to display a ActionSheet when a screen is touched within scrollview. The action sheet pops fine within 1st page. But on subsequent pages, the screen becomes dark and doesn't displaying anything... as if actual button is displaying on the off screen. I played around with frame positioning of UIActionSheet.. but it doesn't see...

Handling many image files in scrollview on iPhone similar to photos app

So I've seen this question asked before and in fact I asked it last night but I thought I'd give it another go just to see if I could get any other unique views on the problem. The Problem — I have an app with a large number of uiimageviews (with image downloaded to disk) in a scrollview which of course has two large problems facing it:...

How can I pause/restart a loop in objective-c

Would like to execute some code in a loop, but I want to pause it while a uiscrollview is scrolling. I've created a BOOL named isScrolling that is set to "YES" in the scrollViewDidScroll method and is set to "NO" in the scrollViewDidEndDecelerating method. I'd like to put the loop in the scrollViewDidEndDecelerating method, but have i...

Problem when using UIImageView's or UIButton's inside a UIScrollView

I'm using a UIScrollView to hold a varying number of images sized at 80x80, and when a user taps one I want it to launch into a modal view showing it fullscreen etc. The problem I'm having is detecting touches on the images inside the scrollview. I've tried two ways so far, but each one has an issue. I'm posting both ways but I only need...

ScrollView setZoomScale Issue

Setup: Tab Bar App First View is a ScrollView which has an ImageView as its subview, loaded from a file. All of the above configured in IB. Application properly launches and I can scroll around the image and all is right with the world. I have it scaling in and out with pinch controls no problem as well. Now however I am trying to ...

UIScrollview touch locations not in bounds of visible subview

I have a UIScrollView with multiple subviews, each of which shows a page of PDF content. Scrolling works correctly, and now what I am trying to do is get the location when the page currently in view is touched. The touch events are being detected, but the location.x is a negative number. In debugging this I've discovered that the scro...

iPhone Scrollview question?

Is there a way to hide the scroll bar in a scroll view? ...

Pressing on a button causes UIScrollView to scorll

Hi, I'm having an inconsistent problem where sometimes I press on a button inside the scrollview. The scrollview catches the event and scrolls instead of the button getting the touch event. Any idea how to solve this bizarre behavior. Thanks ...

scrollview issue

I'm seeing an issue with UIScrollView and I can't figure out what's causing it. Basically, I have a UIView w/ a UIScrollView. When the UIView is pushed onto the stack, an image & some text is displayed within the scrollview. From there the user can popViewController back to the original view. Simple enough... The issue I'm seeing is th...