uiimageview

uiimageview location against another image

I have several uiimageviews on my view which the user can drag around. I have them "snapping" to coordinates based on the view... but... I'm wondering if it's possible to snap these to coordinates based on an image. So I have say one image in the background, a box. When I then drag images around, if they fall inside the box they snap t...

UIImageView and UIImage of equal size

I came across a weird scenario in my code the other day: I have a UIImageView that loads an image with setImage:. The UIImageView is prior initialized with a frame having the exact size of the image (41*41 px). I also set the content mode to UIViewContentModeCenter, which should ensure my image is never scaled. Now when I look at my im...

bounce an image in to view

I have some code which works nicely and acts like a menu appearing when you click a button. I just want to animate slightly. So when it appears, it appears to bounce in. Here's the code which shows it [UIView beginAnimations:@"theAnimation" context:NULL]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelecto...

Problems returning the correct pid from facebook.photos.upload in fbconnect for iPhone SDK

I am using facebook.photos.upload to upload photos direct from my application into facebook albums. This is my current code:- NSMutableDictionary *args = [[[NSMutableDictionary alloc] init] autorelease]; [args setObject:self.facebookString forKey:@"caption"]; UIImage *image = ((iPhotoFitViewController*)self.cameraPickerControlle...

What is the most efficient way to add a reflection to a UIImageView

I just want the easiest way to make a reflection under a UIImageVies that is easily managable. ...

How do I save an NSMutableArray w/ UIImgeViews to the iPhone's document direcory

I have an NSMutableArray that holds multiple and changing amounts (that's why I am using an NSMutableArray) of UIImageView's that I want to save and also in return load when my app quits and loads. Also, how would I then, after my app loads, get the image viws out of the array ...

How do I add one UIImageView into multiple superviews without allocating multiple subviews(UIImageViews)

I want to be able to add one allocation of a UIImageView to multiple UIViews. How would I do this without allocating multiple UIImageViews? ...

How do I name a file differently everytime I allocate it?

The Code: // Inside my BoardsViewController.m - (void)createImage { imageCounter ++; board = [[Boards alloc] init]; [self.view addSubview:board]; [board release]; board is supposed to be changed everytime, and is instead of being named board: be named 1_board, 2_board, 3_board, everytime I call this method ...

Will saved images have tag properties with them when I load them back?

I have 3 UIImageViews, and they all have tags 1, 2, 3, and are inside of an NSMutableArray. I want to save the images to a file upon termination of the app, then load them back whe the app loads and extract them from the array, and still have them have the tags. ...

Multiple Cell Images

Can you place more than one image in a UITableViewCell? ...

UITableView has an "ugly" background image for dynamic height rows

I've created a UITableViewController which calculates the height for each row depending on the amount of text it contains. The code to calculate the row height looks like this: - (CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { CGSize constraint = CGSizeMake(CELL_CONTENT_WIDTH - (CELL_CON...

Can't setImage.

Noob Alert, I am trying to change an image in a UIImageView. popCard is the IBOutlet pointed to the UIImageView - which is blank in IB. there are 5 possible images (Graphic0, Graphic1, etc.) For some reason it keeps displaying Graphic1. I got a feeling I'm missing something simple. Can you help please? This what i am using: getCar...

How do I blur a CGImage, or UIImageView

I have a UIImageView with a .png inside it. I want to blur the image during runtime. How do I do that? ...

uiimage allocation problem

I have 3 UIImages in UIScrollView and I am initializing these images in the following way: UIImage *dimage = [[UIImage alloc] initWithData:data]; Where data is a NSdata gotten from url request. After this I am caching the images. When I check memory allocation the 3 images takes up 472 Kb each and allocation has been requested by "img...

how to insert UIImage into UITextView

hi, im working on a editable notebook type project. it consists some text and images at any time. in UITextView if we add images as subview the frames are fixed. but i have editable option. so i must save image as NSString format in UITextView, but it should look image type in uipart. so please suggest me how can i handle this requier...

how to add text and images together

hi, im developing a notebook based application. it consists of notes and images also. im unable to find best way of coding to add images and text together. it is also editable, so im getting confused whether to take scroll-view or text view. is i taken scroll-view there is no editable option. if i take text view we can't change frames o...

can a UIImageView be warped? (iPhone)

I'm curious if it'd be possible to warp a UIImageView on the iPhone. I was thinking of stretching an image around a curve. Possible or no? ...

how to add more than 100 uiimageviews in uiscrollview

i have an uiscrollview and i add one by one uiimageviews but when i add more than 40 objects i have problem with memory i guess and the app crashes...what should i do? i am trying to make an app like photo viewer from apple! Help please! i do not want thumbnais i just want to show the next image when the user flick from one to another b...

iPhone: Image View picture size limit

Hey guys first I got a picture into a image view that was 2900x2100 and the file size was about 4MB I also had an scroll view to move around the image. Anyways it crashed, first I though it was because the 4MB size. Then I resized it making it 1287x1234 and 1.3MB but it was pixelated when I zoom it too much. After that I manage to make i...

Cocoa Touch - How to check if a non-rectangular object in a UIImageView intersects another object?

Say I have a UIImageView that contains an image of an object that is not rectangular, i.e. a round ball. How can I check if another UIImageView (rectangular or not) intersects, or contains a point in, that object (not its frame)? Basic example: I have two balls rolling around on the screen, and I want to check for collision. But I don'...