uiimageview

iPhone/iPad - help freeing up a little memory...

Hi - I am having a problem with memory I cant get straightened out. What I am doing is this: I have a viewcontroller that looks similar to a book with 7 different tabs. Each time the user presses a tab, the content on the "page" changes and the background image changes to reflect the different tab selected. Each background image is 768...

Display image from MySQL database in a UITableView iPhone

I have some image data stored in BLOB format in MySQL database, I fetch the string and integer data but for image it does not display. i also tried using a UIImageView but it doesn't work. Can some one please post some code to display the image data in a UITableView. NSData-->UIImage-->image display. Thanks ...

How to drag an ImageView with animation

Hi Everyone, I'm currently developing my first iphone game.I'm using one timer to move characters from left to right. Here is my code in viewDidLoad(). arryBadBoys1 = [[NSMutableArray alloc] init]; numberOf1s=15; thiefTag1=0; iWalkingSpeed=2.0; randomCreation=2.0; iSelectedMan=100; pos =CGPointMake(0.0,0.0); [super viewDidLoad]; NSAr...

iPad OpenGL animating texture vs uiimageview

I have a sequence of 24 images that I need to animate on the iPad. The images are full screen - 1024x768. I currently have them displayed using an UIImageView, however there are some issues If I use [UIImage initWithContentsOfFile] to load my images, then the sequence displays very slowly the first time they are displayed, but smoothl...

UIScrollView height change

Hi! I have a UITableView containing a list of maps. When an item is selected a new sub view is added to the main window and the map is shown. In my view controller for the map view the following method gets called each time it's displayed: - (void)showMap { UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageN...

UIImage created from CMSampleBufferRef not displayed in UIImageView?

I'm trying to display a UIImage in real-time coming from the camera, and it seems that my UIImageView is not displaying the image properly. This is the method which a AVCaptureVideoDataOutputSampleBufferDelegate has to implement - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer...

Why doesn't my UIImageView respond to taps?

I have a UIImageView that's being loaded from a NIB. I've hooked up a gesture recognizer to it to handle taps, but when I run the app, taps aren't being detected. ...

What are live bytes?

I have an app that holds a lot of pictures and when the user browses them the live bytes in my app gets to max 88 mb. firstly what does that me, The app doesnt crash, it gets a little slower. but is that 88mb in memory ? Secondly I have a UIView which I set its view to an image depending on the number in the counter. Is there a way to...

xcode - load localized images with the same name, not using nslozalicedstring

Hi. I'm trying to load a "Play" image(uiimageview) depending on the device language. In my AppBundle there are to folders, en.lproj(english) and es.lproj(spanish) with a Play.png image each one(one in english and one in spanish). I know how to load localized images using a Localizable.strings and images with different name, for exampl...

Cocoa Touch - Create an image and display it at a specific point

Hi! I want to display an imageview at different point (the points defined by random numbers). So how can I create an imageview and set its position all programically? sorry if its confusing i dont know how to explain it.. ...

Avoid streching of UIImage inside my UIImageView

Hi. I'm loading an UIImage UImageView. The UImageView has identical width and length, and when I load an UImage it gets streched. Is there any way to load my UImage inside my UImageView without change in its proportions ?, I want the image to fit inside my UIImageView without deformation. Thanks. ...

Problems with uiimageview.image

Hello! I want to change an uiimage.image by calling a method in my viewcontroller: -(void) aendereBild: (NSData*)bildngage { UIImage *uiimageAusData = [UIImage imageWithData: bildngage]; drawImage.image = uiimageAusData; } To make it short: The image is not changing. This is not due to the NSData I pass (which i first thought...

Cocoa Touch - Touches In a UIImageView

How can I make it so the image goes away when it is touched. Here is my code to create the image. It is randomly displayed on screen so after you touch it, it disappears and a new image in a new place appears. -(void)drawStarsAndDetectTouches{ //uses random numbers to display a star on screen //create random position int xCoord...

Initialize a UIImageView object with a rectangle image which will be created by programming.

Hi, I want to create a UIImageView object and initialize it with a rectangle image that will be created by programming and NOT from a pre-created bitmap file. Thanks in advance, Sagiftw ...

New Images Can't Be Found in iPhone SDK

Hello, I've been trying to update an image that is packaged with my app, but the app refuses to load the new file. I originally had a png called "board.png". I then created a new file which is a higher resolution copy of the original. I deleted "board.png" from the Resources group in XCode and added the new image under the same name. W...

png transparency registering touch event iphone?

I have three png's "320 x 480px" that I am loading into separate UIImageViews. The png's names are body, mouth, hat. By stacking the images on top of each other I create a character whose body parts can be swapped out easily. See photo> http://www.1976inc.com/dev/iphone/beast.jpg My Problem is that when you touch the top most UIIm...

Trying to create a rectangle filled with blue UIImage object.

Hi, I want to create a blue rectangle image and see it in my view, but this code doesn't seem to work: CGRect imageRect = CGRectMake(50, 50, 64, 40); UIGraphicsBeginImageContext(imageRect.size); [[UIColor blueColor] set]; UIRectFill(imageRect); UIImage *aImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndIma...

Can I load a big image ?

Hello, I was wondering what is the biggest image size I can use as background in a UIVIEW. I have an image of size 320 by 1700 which is scrollable and was wondering if this is going to be an issue loading it to the heap mem. Cheers. ...

Why retain count is bigger, than I expect (using addSubview)

Why counter variable equals 3, not 2? @interface ScoreView : UIImageView ... - (id)initWithFrame:(CGRect)frame { if (!(self = [super initWithFrame:frame])) return self; _scoreLabel = [[UILabel alloc] initWithFrame:CGRectMake(0,0, 10, 10)]; [self addSubview:_scoreLabel]; int counter = [[[self subviews] ob...

iPhone view shows wrong orientation

I'm wrestling with this problem. I need a portrait view and a landscape view for my App. Now when I create 2 buttons that show me a portrait view and a landscape view (forced by shouldAutorotateToInterfaceOrientation) they show up just fine. But when I call the views from within the result code of an imagepicker, the portraitview works j...