What do I have to do, if I need to rotate an UIImageView? I have an image which I want to rotate by 20 degrees.
The Apple Docs talk about an transformation Matrix, but that sounds incredible difficult. Are there any helpful methods or functions to achieve that?
...
Hi,
I have placed an image (UIImageView) on the navigation bar. Now I want to detect the touch event and want to handle the event. Could you let me know how can I do that?
Thanks.
...
Hi
I am working on a subclass of UIImageView and one of the things I require is when the object is initalised with the initWithImage: message a 'copy' is created.
I must be confusing something because I can't see what is not working here..
- (id)initWithImage:(UIImage *)image {
[image retain];
if (self = [super initWithImage:image]) {...
Does anyone know of a way to implement the zoom loupe functionality of a UITextField on the iphone in a UIImage view?
Part of the app I'm building allows a user to draw a line on a UIImage, a process that might involve precision positioning of the points. In order to help the user, I want to provide the zoom loupe as seen when positioni...
I thought to be clever and just put an transparent UIButton over an UIImageView with the exact frame size, so that I can wire it up easily with any event I like, for example TouchUpInside, and make it call a action method of an view controller when the user touches it. Well, it works until alpha is below 0.1f. If I do 0.01f, it will not ...
I see a lot of people saying imageNamed is bad but equal numbers of people saying the performance is good - especially when rendering UITableViews. See this SO question for example or this article on iPhoneDeveloperTips.com
UIImage's imageNamed method used to leak so it was best avoided but has been fixed in recent releases. I'd like t...
Hi,
I have 6 images, all the same size (65x65). When I create an imageview and add this image through the "image view attributes" in the interface builder, the picture is very small. Maybe 5x5. The pictures also show up small when viewing them in the resource folder however, when running the program, they are the right size. Is there so...
I'd like to check the color set for a background on a UIImageView. I've tried:
if(myimage.backgroundColor == [UIColor greenColor]){
...}
else{
...}
but that doesn't work, even when I know the color is green, it always falls into the else part.
Also, is there a way to output the current color in the debug console.
p [myimage backgro...
Please help me !
i make an app like a slide show with back, previous button to change Image one by one. But when i using large image it crash. Now i,m using 64 jpg pics , size~20kb/1pic.
help me or i die ! (U can add nick hoangtuanfithou, please)
code like that :
//Init Image Array
-(void)InitImageArray1
{
myAnimationImages1 = [[NSMut...
If I have a UIImageView and want to know if a user has tapped the image. In touchesBegan, I do the following but always end up in the first conditional. The window is in portrait mode and the image is at the bottom. I can tap in the upper right of the window and still go into the first condition, which seems very incorrect.
- (void)t...
Tim Omernick from ngmoco recently gave a talk at Stanford and demonstrated an interesting fireworks app for the iPhone that he posted up the code for here:
gamemakers.ngmoco.com/post/111712416/stanford-university-and-apple-were-kind-enough-to
I can get the app to run when I specify the EAGLView's parent class as a UIView in its header ...
I use fotolio.com for images in my iPhone apps. However, button images are always lacking in the SDK. Are there any good resources for iPhone button images? These are different from the large number of iPhone app icon images that are available everywhere.
...
Hi
I have created a subclass of UIImageView and I am handling the touches for its objects inside the subclass itself.
Now when the user is about to exit the app I want to save the state of the images. And as there are multiple transforms which might have taken place on the images (I am saving all the transforms in an array), I want to ...
I have about 10 images in my app. They are in the bundle as resources. Is it better to load them from the bundle on each app start? Or deploy them to disk once and always load from disk?
...
I have a ball assigned to a UIImageView in Interface Builder. An IBOutlet from the UIImageView is wired to a corresponding UIViewController. The image has a white background. When I assign it to the UIImageView in IB, the background is transparent. In IB, I have the UIImageView set to a transparent background and aspect fill.
When ...
I'm trying to do a multistage animation, so that a UIImageView (1) fades in, (2) moves, (3) slide off the screen.
Only stage 1 seems to work. What am I doing wrong? Here's the code:
// FIRST PART - FADE IN
-(void)firstAnim
{
// 'sprite' is a UIImageView
[sprite setAlpha:0.1f];
[UIView beginAnimations:@"anim1" context:NULL];...
I've got an Info Button (Dark) which overlays a UIImageView photograph (which the user makes with camera).
The trouble is, if the photo is dark, then the button is almost invisible (because it's dark too). So, is there a way to get the color of the part of the image under the info button, so that I can change the info button to either d...
Hi Everyone,
I'm creating a subclass of UIImageView that detects touches, and will move, rotate and scale the image based on the touches. However, I really feel like I'm reinventing the wheel here, and it's driving me nuts. Shouldn't this already exist somewhere?
Does anyone have any examples, or links to a class that is already doin...
Hi,
how do I add an overlay (UIImageView) to the camera preview and
handle touches on this?
My previous attempts to do this (e.g. use UIImagePickerController and add the image as a subview) have failed.
...
I have a rather basic question. I have several(5) UIImageView images on
my screen. When I click a button, I want to change each image
to something else. I also want to play a sound as each image is changed.
So I basically want a clicking sound as each image changes.
The problem is, for some reason if I have say 5 images,
the...