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:
...
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...
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
...
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...
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...
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.
...
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...
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;...
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...
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...
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...
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...
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.
...
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...
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...
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...
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.
...
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...
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...
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...