uiimageview

Get Image Position in iphone application

Hi Dude, I like to get the position ie. xposition and yposition of an image in my code. How to extract the positions. Can some one guide me. Thanks in advance. ...

detect rotate gesture and scale gesture iphone sdk

Hello all, I want to rotate the uiimageview also scale the image view so how do i detect touch gesture that user is scaling or user is rotating? ...

Cocoa Touch - X,Y coordinates

I want to display a image at random places on the screen. My idea is to generate two random numbers one being a x-value or a y-value and then passing it into a method which displays the image on the xy coordinates provided. But, I dont know how to accomplish that so I need some help with coordinates...Also if you know a better way to ac...

Why is the app lagging when i "scroll"?

I am developing a "doodle jump" like game and i have 5 platforms on the screen on at a time. there are two background UIImageViews. I have the "scrollUp" function called whenever the player is in the top 3/4's of the screen. when the backgrounds are in view, the game slows down and lags, when the backgrounds are out of view (have scolle...

What's the difference between frame and bounds of a UIImageView?

They are both CGRects and my program behaves the same when I switch one for the other. ...

how to make general collision with images in for loop

collison but its only working for 1 image - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint p = [touch locationInView:self.view]; if (CGRectContainsPoint(CGRectMake(myImage1.frame.origin.x, myImage1.frame.origin.y, myImage1.frame.size.width, myImage1.frame...

UIImageView from array and touch? for IPhone

i have this method Code: - (void)addImageSubViewAtX:(CGFloat)x atY:(CGFloat)y { CGRect myImageRect1 = CGRectMake(x, y, 30.0f, 30.0f); myImage1 = [[UIImageView alloc] initWithFrame:myImageRect1]; [myImage1 setImage:[UIImage imageNamed:@"status_finish.gif"]]; [self.view addSubview:myImage1]; } now i am using this to call ima...

Load image for UIImageView from the net with security

Hi, I'm trying to load an image into an UIImageView from the internet. This is no problem, but what I want is the image be secured with user credentials. So if you go to the direct link of the image, you get an login popup (secured directory). How can I pass those user credentials so I can load the image from the net with user credenti...

UIImagePickerController returned image woes

I have a UIImagePickerController that lets the user pick an image from their library, edit it, and then save the product out to disk. Before it saves, however, I need to update a UIImageView to hold the edited photo. But when I go to set the UIImageView's image property, the program crashes. It still can save to disk. The UIImageView is...

How to stack/z-position multiple UIElements (uilabel, uiimageview, etc) on top of each other?

I've got several UI elements on my screen (programmatically) and am in need of an efficient way to give each subview a z-index setting, so I can stack certain elements over others. Does anyone have a solution to this? ...

How do I create a UIImageview from within a custom class?

I am an objective C newb and relative programming novice in general, so your patience is appreciated. Inside a View Based Application template I am pulling this code out of myNameViewController.m and trying to insert it into a custom class. Everything transitions fine except this: [self.view addSubview:myImage]; I gather this is now c...

UIImageView with strange behavious with DownArrow.png

I have an image under Resources group named "DownArrow.png" Open your viewController.xib Drag & drop an imageview select imageview & press command+1 ( for attribute inspector ) now set image name DownArrow.png save your viewController.xib close it now reopen it. you will find imageview with different image ( which is really a downArrow...

NSThread - help with loading an image from a URL

I'm trying to use threading to load an image from a url. I have no background code and I'm having trouble getting the NSThread thing to work. What I've got is a UIimageView called photo1 and I've got an image that loads in from the net. (say http://www.google.com/logos/classicplus.png) but when navigating to the screen, the app pauses to...

Cocoa Touch - Resizing an UIImageView with a slider

How can I change the size of an imageView by changing the value of a slider. I can hook up the slider and change the value. I just need to know the code to change the size.. ...

Objective C: rotate ui image view, then rotate the other way

Hello, I'm new to objective c. My code has a scrolling back ground and in the fore ground is a spinning wheel. I can scroll the back ground and rotate the wheel UIImage view just fine. I'm having an issue with making the wheel rotate in the opposite direction when my background begins to scroll in the opposite direction. Here's my ...

Collision detection using mulitple subviews within a moving view.

I am working on a game in OBJ C that has a ball view and a stage view. The stage view has 4 subviews. All views are UIImageViews. I have a method for collision detection that is working. I would like to expand it to more than 4 subviews without simply creating more lines of code. Looking at the code below, is there a way to simplify this...

Cocoa Touch - Moving an UIIMageView around on screen

Whats a simple way to let the user drag an imageview around to position it in the place of their choice. Its for a photography app. Thanks! ...

Have UITouch only perform task when touching certain color

How can I have UITouch recognize and perform a certain task ONLY when I touch a certain color in a UIImage view. For example: I have an image of a street. The street has greyish buildings and a white road. If I touch a building, I don't want anything to happen, but if I touch a white road, I want to highlight that section where I tou...

How can I make an image appear to flow seamlessly between tableview cells

I have a UITableView cell with an image that spans the full height of the cell. If I do not use a separator the images on each cell join up and appear as a single image, however, when I turn on the separator the image is sliced (see below). Is there a way to make the image appear on top of the table view separator? ...

Draw UIImageView at multiple places in superview - iPhone OS

I'm creating a custom progress bar and I've spliced it up into 1px images. If the progress bar were 100px wide then I would need 100 UIImageViews to fill the progress bar. The problem is this very quickly slows the iPhone down. How can I reuse an image view? Anthony ...