iphone

Iphone Allocation with NSData

Hi - I have a method that downloads many images from the internet, then saves them to the device. Here is the code: -(IBAction) updateImages { for (x=0; x<[imagesToUpdate count]; x=x+1) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init]; NSMutableDictionary *tempDic = [dic objectForKey:[imagesToUpdate objectAtIndex:...

NSInteger to NSArray iPhone

I have NSInteger variable, for example NSInteger example=1256 and i need an array with elements of this variable. so first element of array is array[0] = 1 array[1] = 2 array[2] = 5 etc.. what way can i solve it ? ...

Notification confusion

I am posting a notification once my custom view is rotated. I have one class which registers to this notification. Now, when my app launches, this method gets called and a notification is thrown but since there no registered controller by that time nothing happens. When I get deep into my app and the controller actually come in picture, ...

iphone: how to add checkboxes to a uitableviewcell?

Hi, I just can't seem figure out how to do this hopefully someone here can help me. In my tableview i want to add checkboxes to each cell and if you touch the checkbox a checkmark appears and a specific action is supposed to happen. but if you just touch the cell a different action is supposed to happen. Does anyone have an idea how to d...

store offline data for querying readonly data in ipad app

My app will consume a xml web service that will pull info, images and documents from the server and store it offline (docs and images are stored on a path, not in the database). I need to perform some simple queries on the offline data for viewing and browsing the offline data. There will be no updates made on the client, the data is re...

IPhone App Crashes on Device but Works on Iphone

I am a beginner at this :) I have an app which changes an image of a UIImageView when a button is pushed, each image is about 200 kb, when run in the simulator it runs ok, I can change the image many times with no problems. When run on my device (ipod touch) it loads ok, it sluggishly gets through about 4 images and then it crashes. Wh...

"_UIApplicationDidEnterBackgroundNotification", referenced from: Error while linking

I'm using the Three20 library in my app, I am seeing this error during linking of the app: "_UIApplicationDidEnterBackgroundNotification", referenced from: _UIApplicationDidEnterBackgroundNotification$non_lazy_ptr in libThree20UINavigator.a(TTBaseNavigator.o) (maybe you meant: _UIApplicationDidEnterBackgroundNotification$non_...

iPhone OS 3.2 equivalent of [CALayer contentsScale]?

Hey I'm trying to do the equivalent thing that the iOS 4.0 method CALayer::contentsScale does, which scales the size of the backing bitmap of the layer. Any way to do this in iOS 3.2, probably by setting the frame size and applying a transform? ...

Dashcode webapp flickers upon transition, only in iPhone Safari

I created a simple RSS web app using the template in Dashcode. Problem is, when choosing items in the list from the feed the transition flickers (even with the default settings). I am guessing its because of the images in the posts. I tried disabling the transitions completely but even then I get a flickering when returning to the list...

How to "become a fan" by Facebook API without leaving iPhone app?

I'd like to allow user to "become a fan" of certain Facebook page in my iPhone app. How can I do that without leave my app, i.e.: - user choose to "become a fan" of a predefined page - Facebook login dialog shows up within app - the app sends "become a fan" request via Facebook API - the Facebook dialog closes and return to app Some s...

Upgrading the company name of an app that has been submitted to the app store

If you first register with the app store as an individual, and then publish your program, can you later change your registration to a company? Will the program be updated to show your company name instead of your individual name? ...

iphone - autoreleasing a CGContextRef ??

I have this method -(CGContextRef) createPDFContext:(CGRect)inMediaBox path:(CFStringRef) path { // bla bla // at some point I have CGContextRef myOutContext = CGPDFContextCreate (dataConsumer, &inMediaBox, NULL); // and then I have to return the value return myOutContext; } The problem is that myOutContext was not ...

iPhone - Store an array of Strings ???

What is the most simple and efficient way of saving an array of strings ? Store the Array in DISK ...

Push messages on the iPhone

Ok, this is a hard one. I have three things: An iPhone app PHP-mySQL database on a server Google App Engine (?) The iPhone app is working fine storing data in the database. I'd like to notify some subscribers when the database changes (i.e. someone uploads something). I assume the app is running, so I just want the view up to date....

ImageIO: ERROR - MetadataLib.dylib not found

I'm getting an odd error in my console when running my app sometimes: ImageIO: ERROR - MetadataLib.dylib not found I'm not sure what this is related to, but I am running AdMobs ads. ...

App Crashed Because of Low Memory

How can I setup my app to handle low memory situations? What are best practices? Incident Identifier: 8BFDA96C-1019-4316-A278-CB86CC67172A CrashReporter Key: 1657e021ecba3a19c5ed9f0cff62947a426a2bc2 Hardware Model: iPhone3,1 OS Version: iPhone OS 4.1 (8B117) Date: 2010-09-28 00:00:12 -0700 ...

Is there any iphone friendly feedback service

I'm looking for an iphone friendly feedback service that can be visited by web browser in my iphone application I have been checked uservoice and getsatifaction, they are only for desktop browsing, not friendly for iphone ...

iPhone - In App Purchase ??

I tested in app purchase on my app in SANDBOX, everything works fine and everything is tested. So how do i change my app to start using the real store instead of sandbox? Is that going to change automatically after i submit a new version? ...

set class for UINavigationController

How to set class(first class) for UINavigationController from code ? ...

how to display an image in the right corner side of a navigationbar?

hello all.I want to display an image in navigation bar at the right corner side.Some one please tell me how can i do this.I tried by taking uiimageview at the right corner of navigation bar but i didnt get it.Thanks in advance ...