uiimageview

Using UIImageView for a flipbook anim on iphone

I'm using UIImageView to run a flipbook anim like this: mIntroAnimFrame = [[UIImageView alloc] initWithFrame:CGRectMake( 0, 0, 480, 320); mIntroAnimFrame.image = [UIImage imageNamed:@"frame0000.tif"]; Basically, when determine it is time, I flip the image by just calling: mIntroAnimFrame.image = [UIImage imageNamed:@"frame0000.tif"];...

UIImage Rotation

I display an image in a UIImageView (within a UIScrollView) which is also stored in CoreData. In the interface, I want the user to be able to rotate the picture by 90 degrees. I also want it to be saved in CoreData. What should I rotate in the display? the scrollview, the uiimageview or the image itself? (If possible I would like the r...

Creating a UIImage from a rotated UIImageView...

I have a UIImageView with an image in it. I have rotated the image prior to display by setting the transform property of the UIImageView to CGAffineTransformMakeRotation(angle) where angle is the angle in radians. I want to be able to create another UIImage that corresponds to the rotated version that I can see in my view. I am almost...

Background Image w/Quartz Drawing

I'm using Quartz to do some basic drawing. I recently decided I wanted a background image for my app. So I went into my XIB file and added a UIImageView and set the background, looks good. However, when I run it, the Z-Index of the image is above my drawing. I googled a bit and found that you can do Layout > Send to Back in IB...but ...

iPhone imageView layer masksToBound leads to slow scrolling

I have a UITableView with about 30 cells, 5 are viewable at a time. In each cell I have 2 UILabels and 1 UIImageView. I use a CALayer to render the image view with a rounded border. myImageView.layer.masksToBounds = YES; myImageView.layer.cornerRadius = 2.5; myImageView.layer.borderWidth = 1.0; myImageView.layer.border...

How to prevent view resizing/transform when UINavigationBar hides/shows

I have an application with a tab bar and a navigation bar. I push a view controller that is used to show photos, one at a time. It initially shows the bars and forward/back controls; after a delay, these hide, using setNavigationBarHidden:animated: and a custom transform (CGAffineTransformMakeTranslation) on the tab bar. This works, b...

UIView scaled to thumbprint, what about subviews?

I have a UIImageView that I create progmatically right? Works like a charm when I initWithImage and set the parameters for scaling to UIViewContentModeScaleToFill. I can scale all day long and create many different smaller 'thumbprint' sized versions of the UIImageView at whim, HOWEVER when I add subviews to said UIImageView and then try...

[objective C] IPhone question about UIImageView memory menagement

Hi, i have a UIImageView of 1024x768 (the room of my game) and other various UIIMageView on it (the object of my game). The iPhone screen is smaller than the room (UIImageView 1024x768) .. i want to understand if the iPhone's system automatically intercepts the graphic elements outside the visible area of Room (the player's view) and unl...

Keeping object in memory (iPhone SDK)

I am trying to create a UIImageView called theImageView in the touchesBegan method that I can then then move to a new location in touchesMoved. Currently I am receiving an "undeclared" error in touchesMoved where I set the new location for theImageView. What can I do to keep theImageView in memory between these two methods? EDIT: I am ...

Layers of Images using UIImageView

Hi everyone, I just wanted to confirm, is it possible that we add layers of images using UImageView, one as background and other on top of it. I mean i want to use 2 images one has to be in the background and the other on top of it. ( the size of both these images is 320 x 480 ). Through the attributes inspector we cant do it. Is the...

ImageView changes frame/bounds...

I have been trying to find this issue here, but no topic seems to fit... I have a UINavigationController that pushes different kinds of UIViews containing images. When the controller pushes a new view, it the navigation bar is moved onto the screen and it appears that the image subsequently is being 'squelched' a bit - or it 'moves in fr...

What is the proper way to align UITableViewCells when only some have an imageView?

Hello all, I am new to iPhone programming and working on my first real application (i.e. one not written in a book or online) and I've run into a small problem which I could solve a multitude of ways, but feel like there should be a good solution that perhaps I am just missing. Here is the scenario: I have a UITableView with a bunch of...

UIImageView animation has long delay on device

I create a 5-frame animation on UImageView and each image is created by [UIImage imageWithContentOfFile:xxx], however, the animation on simulator is working well but not on device, it usually has ~1 sec delay though the animation duration is 1sec. This is my code. NSArray *animations = [[NSBundle mainBundle] pathsForResourcesOfType:@"...

how to know the direction of rotation of UIImage in iPhone

hello, i want to rotate the uiimage in the direction turned, i'm able to get the angle between touchesBegan and TouchesEnd points but how should i decide whether to rotate cockwise or anti-clockwise? Plz help ...

IB not responding to UIImageView moving

This an incredibly annoying bug. I had a imageView and 2 Labels in a customCell nib. I changed the locations of all of them in the nib and the labels moved, view didn't. I've cleaned my targets, deleted everything relating to it the library, deleted the cell completely, reset the simulator, built it on a different target (3.1.2) and it ...

Load static google map into UIImageView?

I'm trying to show a small static google map in my app. I'm wondering if it's possible to do this using UIImageView? It doesn't seem to be working for me but maybe I'm doing something wrong. This is what I have (I stripped the URL so that it's easier to read): NSURL *mapurl = [[NSURL alloc] initWithString:@"http://maps.google.com/...

Creating a UIImage from a UIImageView that has been CGAffineTransformXXX'ed.

Hello, I have a UIImageView which has various transforms applied to the image (e.g. scaled and rotated). I would like to save the transformed image which now appears in the view, to a UIImage. Does anyone know how this is achieved? Thank you, Winston ...

Can't display UIImage from UIImagePickerController when using IBAction

Hello guys, I 'm new to xcode. I try to select an image from the UIImagePickerController and then display this image pressing a button. But the simulator crashes. In the .h I use UIImage *dispimage; //in order to make a global image -(IBAction) open; -(IBAction) print; In the .m I have - (void)viewDidLoad { self.imgPicker = [[UIImag...

image is not getting loaded in view.

I have created 2 views named "FirstView" and "SecondView". SecondView's nib file has an UIImage view object as its IBOutlet. Now I am getting an UIImage object from some FirstViewController's method. Now I am setting the SecondViewController's imageView property with that image and then I am pushing my SecondView Controller's object in N...

Make an iPhone InfoButton light/dark based on color behind it

How do I detect what color is under the InfoButton... so I can change the button from DARK to LIGHT? I set my view's color... but how do I tell if it's "kind of light" or "kind of dark"? Besides... I can't change the info-button from light to dark anyway. (read only) Ugh. Shouldn't Apple have some kind of a simple "cmdButton.doThisE...