uiimageview

Group objects with iPhone SDK?

Hi In my iPhone app, I have a number of UIImageView that do the same thing, then a second load which do the same thing. Can I some how tag/group these so that I can simply reference all the objects with one name? Otherwise it means having to have dozens of lines of code for a single repetitive action. Thanks! ...

Animate Rotating UIImageView

Hi I want to rotate a uiimageview by roughly 10 degrees left/right but have a smooth animation, rather than a sudden turn which I see using: player.transform = CGAffineTransformMakeRotation(angle); Any help appreciated, thanks. ...

How to Add 3 images to each row of a UITableView?

I have a collection of images that the number of them aren't determined and vary from 0 to 1000, anyone got an idea how can I present them to the user? I think I can add each three of them to a uitableviewcell but I don't know how. any help would greatly appreciated. :) ...

How to apply tint for an UIImageView basing on slider value in iPhone.

Hi, I need some help regarding applying the tint effect for an UIImageView basing on the slider value. I had used oepnGL for this logic. But i find some problem with open GL. So i taught to do without openGL.Can anyone help me in getting this logic. As if i'm new to this technology, i don't know how to sort this out. Thanks in advanc...

UIImage Faux-High-Res Effect using Interpolation Algorithms

Hello, I'm programming a few picture viewers for the iPad and the problem that I always have is that unless you use a really big resolution image source, when the user zooms, the image will get pixelated. I was thinking that maybe some kind of upscaling filter could be applied to the image when zoomed. Like the ones here http://en.wiki...

Cannot unhide UILabel or UIImageView

I've just started iPhone development, and have come across an annoying problem. I am transitioning from one view to another, however in the interim I'd like to display a loading image. The controller currently contains a TableView and TabControl. I have added an image and label to the control (of a 'loading' image) and linked them up to...

How to make rounded corners on image in uiimageview?

I have a uiimage in a uiimageview. the uiimage doesn't fill the entire uiimageview. I'm trying to have a border with rounded corners, but just around the uiimage, not the entire uiimageview. Can't figure out how to get it. I have homeButtonImage.layer.cornerRadius = 5; homeButtonImage.layer.masksToBounds = YES; homeButtonImage.laye...

How do you find the size/rect of a uiimage?

I have a UIImageView that has a UIImage (obviously), and I want to get the dimensions of the UIImage so that I can draw a border with rounded edges for just the UIImage (not the entire UIImageView). Thanks. ...

Image displayed using CGRect is obscuring UIButtons

I have an image displayed using CGRect (code below). the problem is that it's obscuring UIButtons I have in the nib file. CGRect myImageRect = CGRectMake(0.0f, 40.0f, 480.0f, 280.0f); UIImageView *myImage = [[UIImageView alloc] initWithFrame:myImageRect]; [myImage setImage:[UIImage imageNamed:recipe.image]]; [self.view addSubview:myIma...

Add a shadow to a masked image

Hi there, I'm currently creating irregular images and I'd like to add a shadow to it programmatically : 1) load image (png file) 2) load mask (png file) 3) mask image with mask : output is an UIImage 4) add shadow to the irregular image (not squared nor circle) ...?? how do i do point 4 : should I 1) copy the current image 2) th...

iPhone: Adding UIImage to UIImageView adds a second image

I have a UIImageView that I have already set an image to. This works fine, but later, I want to change that image. So, I set a new image for the image property, but when I view the app, that image is set as a second image over the first: UIImageView *image; image = (UIImageView *)[cell viewWithTag:0]; image.image = [UIImage imageNamed...

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 want to show them in the UIScrollView with paging enabled. All images is in the size 1024x748 (iPad landscape resolution with status bar) and...

Embedding a UITextView in an image

I have a UIImageView displaying a picture that I took with the iPhone Camera. On top of that, I have a UITextView in which the user can type stuff that describes the picture. I would like to create a combined image of the two views and send it to a server. Anyone knows how I can do that (just creating the image. I know how to send it)...

iPhone: Problem with incrementing NSNumber & displaying transparent images (UIImageView)

Hi Guys! I have a problem with NSNumber: I don't understand how to increment and decrement it! I've tried int with [NSNumber intValue] and so on, but it didn't work!!!! I just want a page counter which can be converted to an NSNumber at the end. My second problem is displaying a (partially) transparent image in an UIImageView. It has e...

Access UIView after adding it to superview/as a subview

Hi, I have a variable sized array of UIImageViews that I'd like to add to my main View. So I loop through the array, adding each UIImageView to the scene as follows: for (UIImageView *nextImageView in myImageArray] [self.view addSubview:nextImageView]; (I also configure their frames individually but have left that out here) Howev...

How to mark a point on an UIImageView so as to know the position of that particular point at any time when it's rotated?

I have an image (see below) that I rotate using this code. Somehow I need to find out how to find at any moment where is the little bar when rotated, could someone guide me please? float dx = locationT.x - imgVVolume.center.x; float dy = locationT.y - imgVVolume.center.y; CGFloat angleDif = 0.0f; movedRotationAngle = atan2(dy,...

UIImageView switching setContentMode random EXEC_BAD_ACCESS

Hi, I'm using an UIImageView and UIScrollView inside UIViewController to show images. Actual Size and Fit to Screen options available at the toolbar to let user switch between modes. While switching between modes I am getting EXEC_BAD_ACCESS error randomly. Randomly means I can switch to Actual Size mode to Fit to Screen modes copule of ...

UIImageView display in front of navigation bar?

Hi there... Is there any way to display an image infront of the navigation bar? I know this is a little bit messy - but its just an asthetic thing. The imageview takes up more height than the view and therefore needs to overlap the navigation bar a little bit. Is this possible at all? It must be. :) Thank you ...

Progress bar on iPhone using UIImages

I'm designing a progress bar for an app that essentially is two UIImages - both are the exact same size (long rectangles with rounded corners), except they are colored differently. The bottom bar is black and the progress bar that will fill over it is grey. Displaying the bottom bar is easy enough. The issue I'm trying to figure out is...

iPhone page curl transition animation

I'm trying to instigate a page curl transition with a UIImageView in a Window. This code is in my main init method : [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.5]; [UIView setAnimationDelay:delay]; [UIView setAnimationBeginsFromCurrentState:YES]; [UIView setAnimationDidStopSelector:@selector(animCompleteHan...