uiimageview

Using an animated UIImageView as an iPhone camera overlay

Like the title says, in the iPhone SDK, I want to create an animated UIImageView and use it as a camera overlay. However, nothing appears. I've been using the same setup to display a static image as an overlay, but when trying to use the following code, no overlay appears: imageView.animationImages = [NSArray arrayWithObjects: ...

How do I force a UIImageView and its subviews to redraw in a new context?

kSBCanvas is a SBCanvas, which is a subclass of UIImageView. It has a few UIImageView subviews. It all renders great to the iPhone screen. I need composite the kSBCanvas and its subviews to an imageview that I want to write to disk. I do the following: UIGraphicsBeginImageContext(kSBCanvas.bounds.size); [kSBCanvas drawRect: [kSBCa...

Know the real bounds of an image in UIImageView

Hello, I am using an UIImageView to load an image with aspectfit. Hence the image does use the whole UIImageView surface. How to know what is the bounds of the image inside the UIImageView? Thanks in advance ...

Any other way to do animations?

Is there any other way to do animations besides my below code? I'm asking because I'm going to have some pretty intense animations that could get up to 20-30 frames. I'm also wondering if it's possible to play a sound with each frame? popup.animationImages = [NSArray arrayWithObjects: [UIImage imageNam...

Load PDF into UIImage or UIImageView?

Hi everybody! This is my first ever question on stackoverflow. I'm trying to load a PDF file stored in Resources into a UIImage/UIImageView object in the iPhone SDK. Is this at all possible without converting the PDF to an image? If not, what are the member functions for converting a PDF into a PNG? I would really prefer to preserve the...

UIwebview touch event

I am using a webview and on that web view i have a image. I want to know how i detect touch event of image of webview. I have o open a new view when image is touch. ...

UIImageView subclass touch detection

I have a subclass of UIImageView that I need to know when is touched. (Full code below.) I have found and read both this and this. They were mildly useful, but neither really worked. Not only is my touchesBegan:withEvent: method not being called, the button behind the image is being pressed. Here is my code: Header file: @interface M...

Sometimes UIImageView seems to reject the image taken with iPhone Camera

Hi, it is very strange, because this error doesn't happen all the time... I have the following code: - (IBAction)getPhoto:(id)sender { UIImagePickerController * picker = [[UIImagePickerController alloc] init]; picker.delegate = self; #if TARGET_IPHONE_SIMULATOR picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;...

resizing images will giving memory warning

hi, I am developing image framing application for iphone. when i choose image from image-picker controller and after zooming , cropping,pairing with frame i will save the image. for that i am drawing image context over image. actually my image is of 1200*1600 size but our connivance taking image frame of 320*480. so after drawing ima...

Get zoomed image from UIImageView

Hi I am using a UIImageview inside a UIScrollView to let users pinch and zoom the image. I now want to get the image which the user has modified (small or zoomed in). How can I do this? Thanks. OK, am trying something new now. Can I get a thumbnail from an image from somewhere in between? I can get the thumbnail from (0,0) for a fixed...

How to get rid of previous reflection when reflecting a UIImageView (with changing pictures)?

Hi everyone, I have managed to use the reflection sample app from apple to create a reflection from a UIImageView. But the problem is that when I change the picture inside the UIImageView, the reflection from the previous displayed picture remains on the screen. The new reflection on the next picture then overlaps the previous reflecti...

iPhone SDK: subFolders inside the main bundle

Hi, in the current project I have a number of folders, with subfolders, and these contain images: 01.png, 02.png. Folder1/FolderA/f1.png Folder1/FolderB/F1.png When I compile the app, I looked inside the the .app and noticed that all the images are placed in the top level, with no sub-folders. So clearly when trying to load the imag...

Simplest means to fade/dissolve between two UIImageViews

Could someone give me a little direction on creating crossfades/dissolves between two UIImageViews in the same view controller? I am trying to set up an effect of a background image slideshow but not sure on the mechanics. Thanks. ...

iPhone: How to Maintain Original Image Size Thoughout Image Edits

hi, I am developing an iPhone app that resizes and merges images. I want to select two photos of size 1600x1200 from photo library and then merge both into a single image and save that new image back to the photo library. However, I can't get the right size for the merged image. I take two image views of frame 320x480 and set the v...

UIimageview drawInRect with aspect to fit mode.

previously i had custom tableviewcell and was loading from Nib.in that i have specified mode "Aspect to fit" for my imageview. but loading this Nib file was too slow. so i have started drawing content of uitablewviewcell. here is a code for what i am doing to draw image. [image drawInRect:CGRectMake(10,10,80,100)]; but this does not g...

UIImageView touchesBegan don't exist variables

Hi, here is the situation: 1.I have viewControler and in method viewDidLoad i created subview and add it to a this view. 2.My subView (UIImageView) colled Kvadrat and in method. Here i am cooling my other class and here method. -(void) setKorpa: (Korpa *)k { mKorpa = k; NSLog (@"Number of elements in array = %i", [[mKorpa vratiSveKv...

Apple Interface Builder: adding subview to UIImageView

I created UIImageView with the help of Interface Bulder. Now I want to place label inside it (as its subview). In code I can type something like: [myUIImageView addSubview:myUILabel]; But can I do it with the help of IB? I found the solution for UIView, but can't find something similar for UIImageView. ...

iphone assign image to viewcontroller problem

Hi i am retrieving image to my second view using URL,problem is i cannot able to assign the image to the UIImageView object this code working fine NSData imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://dblog.com.au/wp-content/galah.jpg"]]; UIImage animalImage = [[UIImage alloc] initWithData:imageData]; problem...

touches event handler for UIImageView

I am just getting stated with iPhone development and can't seem to find the answer I am looking for what I want to do. It seems like I should be able to programmatically create a UIImageView and then set up an event handler for it's touch functions. in c# i would have something that looks like Button b = new Button(); b.Click+= my ha...

UIImageView not appearing

Hello, I am trying to work with a UIImageView programmatically and can't get it to appear on the screen. In my header I have the following lines: @interface myClass : UIView { UIImageView *imageView; } @property (nonatomic, readonly) IBOutlet UIImageView *imageView; Then in my viewWillAppear I have the following: self.imageView...