uiimageview

Capturing a view from iphone through coding

Hi All, In my iPhone application, i am using the following code to get a snap shot from the iphone application. -(UIImage *)captureView:(UIView *)view { CGRect screenRect = [view bounds]; UIGraphicsBeginImageContext(screenRect.size); CGContextRef ctx = UIGraphicsGetCurrentContext(); [[UIColor clearColor] set]; CGContextFillRect(c...

animation blocks infinite loop - iphone

I'm having difficulty working with the animation blocks. I'm trying to have the first animation change the alpha of an image so that it flashes, then after 10 seconds disappears. the firstAnimation then moves to secondAnimation which does the same thing only to a different image. the process then repeats itself infinitely. I've been wor...

UIImage not displaying under UIScrollview

This is pretty simple but I cannot figure it out. I am trying to display an image which you can simply slide around the screen. For some reason however, i'm simply getting a white background. header #import <UIKit/UIKit.h> @interface ScrolliPadViewController : UIViewController { UIImageView *imageView; } @end ...

two UIImageViews in one UIScrollView! How to zoom in the right UIImageView?

Hi folks, i have two UIImageViews as childs in one UISCrollView. You can flip sideways to display pages of a brochure. (12 Pages). Now i wanted to zoom pages. I couldn't get it up till now to zoom the right ImageView. I know i have to implement - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return someView ...

How To Move UIImageView?

Hi guys! Heres the deal: I code an UIImageView in the viewDidLoad and i want it to move down with my fonction buttonPressed** without creating an other subview like i do. Heres the code. -(void)viewDidLoad { [super viewDidLoad]; banetteImage = [UIImage imageNamed:@"myBanette.png"]; UIImageView *banetteView = [[UIImageView alloc] in...

iOS - How to add display a string on a UIImageView

How can I show a string on a UIImage View? Ok Ive got this currently: - (void)viewDidLoad { [super viewDidLoad]; playerPositions = [[NSArray alloc] initWithObjects:box1,box2,box3,box4,nil]; [box3 drawRect:box3.frame]; } - (void)drawRect:(CGRect)rect { [super drawRect:rect]; CGContextRef context = UIGraphicsGetCurrentContext...

Multiple Tags on a UIImageView ?

Hi all, Is it possible to have more than one tag associated with a UIImageView ? Cheers, Martin ...

UITableViewCell backgroundView image resizing?

Hello, I am using an image to display the whole content of a UITableViewCell and it's set using the backgroundView property. My problem is that it is always scaled to fit the cell. Is there a way to disable scaling in this case, so I can provide the 480 pixel version only and it just gets cropped when orientation is portrait? I'm doin...

_dyld_start causing leaks in iphone apps

Using the Allocations Instrument on my Iphone Device, I notice in my heapshots that all my heap growth is caused by the _dyld_start caller (of dyld library). Here is an example: Snapshot: UIImageView Heap Growth: 4.83 Kb Still Alive: 103 When I look in the details, all I see is several instances of the following: Object Add: xxxx C...

Landscape images work, portrait images don't

Hello Developers, I 'm new to programming with objective C. I try to read the argb data from an image and then display this image. It works for landscape images, but doesn't for portrait images. Here is the code I use. //Read the data CGImageRef inImage = dispimage.CGImage; CGColorSpaceRef colorspace = CGImageGetColorSpace(inImage); CGC...

Moving multiple UIImageViews simultaneously

Hi there, simple question, I've got a superview holding multiple sub UIIMageViews that I'd like to move simultaneously. I now about UIIView Animations but not how to launch multiples animation at a time. Any clue about that ? example animations would be : growing, shrinking, alpha changes, moving along different (radom generated) pat...

Drag an UIImageView from UIscrollView to another view

Hello, i crawled all the web, but nothing. I have a for loop to create uiimageview inside a uiscrollview controller. It's a collection of images that you can scroll horizontally only. for (int i = 0; i < NIMAGES; i++) { NSString *filename = [NSString stringWithFormat:@"image%d.png", i+1]; ScrollerImage *iv = [[ScrollerImage all...

Zooming multiple UIImageViews in a scrollView without affecting other imageviews..

Hi, I downloaded images from ftp server and placed them on UIImageViews which is on a scrollview .I want to zoom each image on the UIImageView without disturbing other UIImageViews. ...

UIImageview won't update after changing the center

I am trying to create a small augmented reality application where I move an image on top of the camera capture. So the only thing I change is the center of the UIImageview: [imageView1 setCenter:CGPointMake(x-16, 240)]; and the center gets updated but the position of the image on the screen stays the same. after the center update, t...

UIImage wont display

I need help with a problem I cant seem to solve. I have a viewcontroller(view1) which I show by presenting it. This view(view1) has a button on it, which when selected, presents another viewController(view 2). View 2 has a few buttons, when one is selected it opens a new viewController(view3). Now the thing is, when a button is sele...

UIViewContentModeScaleAspectFit iphone sdk gives poor quality image

Hopefully a quick one? I am creating a custom uitableviewcell and have added an imageview. I have some PNG images which are around 200x200 in size. I want to create a thumbnail to put in the tableview, but when I resize the image, it results in a poor quality image. I use UIViewContentModeScaleAspectFit to resize it to a 50x50 frame. ...

Press a button behind a UIView

I have a button and half of the button is covered by a UIView (for styling). I was wondering if there was any way to make this UIView "touch transparent" as it were, so if you press on it it lets you select the image behind it? Or will I just have to make it a button itself? Thanks Tom ...

Zoom multiples UIImageViews inside an UIScrollView

Dear Friends, I am trying to create a small game for the iPhone with images and I want to them to zoom in when the player is pinching on the screen. I have seen the tutorials with one UIImageView. However, now that I am using multiple UIImageViews, things do not work OK. I put them in an UIView and I am trying to zoom the UIView. Howe...

How to implement TouchInside to an UIImageView

Hi! I've a custom UIImageView and I need to implement UIControl methods (like touchupinside) but I don't know how to do this. Here is my custom UIImage #import "IngredientImage.h" @implementation IngredientImage @synthesize startLocation, initialFrame; - (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event { // Retrieve the t...

Place Images out of NSMutableArray on UIView?

Hi, I have an array of multiple images which I want to display on my screen (2 Columns, 4 Rows). If there are more than 8 Images in the row, than a new view should be created. Can someone please point me in the correct direction how to handle this? Thanks for any feedback! BR, Stefan ...