uiimageview

In iPhone UIImageView, what method to override for instance variable init?

I have a very simple app that processes touches on a UIImageView derived view. The view has an array of rectangle coordinates that act as buttons. Since this is a simple app I handle all the touch events right in my UIImageView derived class. I need to init the array of image coordinates which is an instance variable. I tried overrid...

Drawing on UIImage / Memory issue - objective-c

Greetings, I'm trying to draw a circle on a map. all the separate pieces of this project work independently but when I put them all together it breaks. I setup my UI in my viewDidLoad, retaining most of it. I then use touch events to call a my refresh map method: -(void)refreshMap{ NSString *thePath = [NSString stringWithFormat:@"h...

How to dynamically restore the UIScrollView's zoom level and position when my app relaunches?

My application consists of a UIImageView inside a UIScrollView, and I display a big image inside of it. The scroll view allows the user to pinch to zoom in/out in the image, and that all seems to work just fine. However, when my application is terminated and then re-launched, the UIScrollView displays the image again in the original zoo...

UIImage and UIImageView problem

set a UIImageView.image property to a UIImage is unable add the image to the view,however if i set the imageview frame property,it works.can anyone tell me how it's happen? and what will happen when i apply the UIImage instance method[drawInRect:] redraw the image frame which is larger than the view frame?i have tried but nothing happen,...

Toggling display of image in UITableViewCell

Depending on the result of a condition, I want to display a UIImageView in a table cell. Otherwise display UITableViewCellAccessoryCheckmark. I'd like to construct the cell in IB. The part I'm not sure of what to do with the UIImageView when I don't want it displayed. If I were constructing it all programmatically, I'd add the UIImage...

How can I change the image displayed in an UIImageView programmatically?

I have an IBOutlet to an UIImageView, but when I look at the UIImageView doc, I can't see any hint about how to programmatically change it. Do I have to fetch an UIImage object from that UIImageView? ...

iPhone: UIImageView does not change it's image programmatically. How to?

I have this code: - (void)viewDidLoad { [super viewDidLoad]; landscape.image = [UIImage imageNamed:@"tenerife1.png"]; } First, I created an UIImageView with IBOutlet. landscape is pointing to that UIImageView. In InterfaceBuilder i told to show an specific image in that UIImageView. It never changes. I always see the image I specifie...

How can I change the inner image position of an UIImageView?

I have defined an UIImageView in my nib. After the app launches, I display an image in that UIImageView. Maybe I am on the wrong way, but what I want to do is the following: The image which I load into the view is bigger than the view itself. I want that it is displayed in original size with hidden overlay. Then I want to slowly move th...

Is it possible to set the position of an UIImageView's image?

I have an UIImageView that displays an bigger image. It appears to be centered, but I would like to move that image inside that UIImageView. I looked at the MoveMe sample from Apple, but I couldn't figure out how they do it. It seems that they don't even have an UIImageView for that. Any ideas? ...

iPhone UIImageView animation woes

Hi all, I'm having some problems with UIImageView animations. I've created three NSArray objects containing the images and created three methods that take a UIImageView and assigns the new animations to it. It works fantastic calling one of the three methods the first time but doing it another time crashes the simulator and device. Any I...

Changing UIImageView animation speed

I am using the UIImageView to animate a bunch of images. I know that I can change the speed by altering animationDuration, but that doesn't seem to take effect until the animation is restarted. My problem is that beside not really wanting to have to restart the animation as this limits me to only being able to change the speed once per ...

iphone:UIImage and UIImageView

Hello Friends can in some way join many UIImages together at different locations to form a big UIImageView object... would this thing be possible in any way ...

UITableViewCell with image on the right?

Is there a way to set the UITableViewCell.image to display on the right hand side of the cell instead of the left? Or will I need to add a separate UIImageView on the right side of the cell layout? ...

How to make swoosh graphic/sound effect?

I have a UIImageView that can be dragged around with a finger. It is sized to an image in it, such as a ball or square. If the user accelerates very quicker, I'd like to trail the object with a blur of itself to give the appearance of going fast. Like what happens with warp speed. I also have a swoosh sound. I'd like the sound to l...

How to output frame positions in debugger?

I have a UIIMageView and want to output values such as: myobject.center.y myobject.frame Basically, position and size information. I'm using both "po" in the console and breakpoint actions with @@ but neither works. I always end up with an error such as "There is no member named center". How do I output these values in both the de...

How do I center a UIImageView within a full-screen UIScrollView?

In my application, I would like to present the user with a full-screen photo viewer much like the one used in the Photos app. This is just for a single photo and as such should be quite simple. I just want the user to be able to view this one photo with the ability to zoom and pan. I have most of it working. And, if I do not center my U...

ImageView trouble

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:src="@drawable/wallpaper"...

Adding UIImageView to an NSMutableDictionary...

I'm trying to add multiple instances of UIImageView(s) to an NSMutableArray of NSMutableDictionar(ies). I am doing this, to be able to go back and pull out the UIImageView reference, to change the position of these images. It seems that, when I pull the info out of the Dictionary, that it only returns a null pointer... Any suggestions...

Set UIImage of a new view and display it

Hi, I'm trying to set the image of a new view. I set the controller's image an then display the view. But in the controller's viewDidLoad, no image is available. - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo { EditPictureSaveViewController...

Display image as popup

I need to display a table formatted data on top of a UIWebView as a modal. Basically a UIAlertView. However, I need to display tabular data in this modal, which UIAlertView can't do (that I know of). I'm thinking to create an image with the textual data in it and display the image in a UIImageView or that within a UIView that can have...