What is the equivalent to "UIImageView" on OSX?
I'm wondering how to get some nice sprite-animations on OSX - like the UIImageView provides for the iPhoneOS. NSImageView cant... but how can I solve this? ...
I'm wondering how to get some nice sprite-animations on OSX - like the UIImageView provides for the iPhoneOS. NSImageView cant... but how can I solve this? ...
Hello, I've placed an image in my UIView with IB. How do I move this image around, resize it, etc programmatically? I cannot figure out how to reference it from my code. Thanks a zillion. ...
Hi everyone, I am trying to create a horizontal UIScrollView with a few images in it. The user should be able to scroll horizontal between all the images. If he holds down the finger the scrolling should stop. I though about making a UIScrollView (320 x 122 px) UIView for the content + really big width UIImageView for the individual...
Hello, I faced a strange problem. My task is to provide scaling an image to fill the UIImageView frame. The UIImageView is a subview of another view. The code is following: CGRect frame=CGRectMake(0,0,viewSize.width,viewSize.height); UIView* backView=[[UIView alloc] initWithFrame:frame]; backView.autoresizesSubviews=YES; backView.aut...
The title of this question should be pretty self explanatory. I am making an app that involves multiple UIImageViews that serve the same purpose. They are merely different sizes. Anyway, I decided that the best solution was to make UIImageView subclasses, link the subcalsses in IB, and work from there. My code should explain this be...
Hi all, I am trying to make a game for the iPhone/iPod Touch. I am somewhat new to iPhone programming and extremely new to iPhone game programming so try to bear with me if this is a stupid question. How to I make my character, a UIImageView, move to the right or left, along the x axis. Just a simple translation across the screen. Th...
i have picture like this image it will present on Landscape Mode so if rotate device to Portrait, how to present image like this ...
Hi, I am changing the image in UIImageView based on accelerometer input. The images are stored in an array. The application runs fine for a while and then crashes. warning: check_safe_call: could not restore current frame I am not using "UIImage ImageNamed" method when populating the array. The total size of all images is around...
example i draw UIImageView inside UIView with a.png then i rotate my device is it possible to draw another picture to replace my current picture(a.png) ? ...
at initial UIImageView i have set it to mCurrentImageView.contentMode = UIViewContentModeLeft; so if the device rotate i will change contentMode but it had no effect. how can i fix it? if ([UIDevice currentDevice].orientation == UIInterfaceOrientationLandscapeLeft || [UIDevice currentDevice].orientation == UIInterfaceOrientationLandsc...
Hi all, Could someone please tell me how to make an image appear when the user taps the screen and make it appear at the position of the tap. Thanks in advance, Tate ...
Possible Duplicate: Making images appear How? Hi all, Could someone please tell me how to make an image appear when the user taps the screen and make it appear at the position of the tap. Thanks in advance, Tate ...
I am trying to make a UIImageView move when I tap a button. I have set a UIIAction to start an NSTimer. When tap the button, the character(UIImageView) moves fine. When I tap the same button again, the character speeds up and so forth so eventually he is moving a billion mph. How do I solve this? Here is the code: (void)animateCha...
Hello, This is the 2nd time I have asked this. How do I draw an image at the location of the user's tap every time the user taps the screen? Could you please leave a sample project or code because I am new to iPhone programming and have a hard time understanding certain methods etc. Thanks, Tate ...
My big picture goal is to have a grey field over an image, and then as the user rubs on that grey field, it reveals the image underneath. Basically like a lottery scratcher card. I've done a bunch of searching through the docs, as well as this site, but can't find the solution. The following is just a proof of concept to test "erasing...
I have the following un my applicationDidFinishLaunching method UIImage *image2 = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image2.jpg" ofType:nil]]; view2 = [[UIImageView alloc] initWithImage:image2]; view2.hidden = YES; [containerView addSubview:view2]; I'm simply adding an image to a view. But becaus...
Hi all, i'm looking for a way to draw multiple images (downloaded from a webservice) inside a single uiimageview. So it'd go like i downloaded image #1, and i'd like to draw it inside rect (0,0,100,100) then #2 at (0,100,100,100) etc. I'd like to then be able to take the entire composition and save it as an image in camera roll. thanks i...
I have a UIImageView whose frame, set before the image is loaded, is always too large for the image, so when I try to round the corners, for example, nothing happens. How can I resize the frame so it's the same size as the underlying image, while ensuring that the center point of the UIImageView does not change? ...
I am trying to make a little ball that rolls around based on the accelerometer values in the iPhone. This code will not build: -(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration { if(difficulty == @"Easy") { CGFloat newX = (CGFloat)(ball.frame.origin.x + (CGFloat)acceleration.x); CG...
Hi, I currently have a UIPicker which I load in an image for each row using: - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view Unlike the normal behaviour using text in the UIPicker row, when using images I get a background selection colour over th...