iphone

how to associate private key with a certificate in keychain

I just downloaded iphone sdk 4. when I try to install on the device I get "Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain" I have gone through the process of creating a provisioning profile and cert through iphone Development Provisioning Assistan...

Building and Installing to ios 3.2

I recently installed the latest version of xcode with support for ios 4. Unfortunately when I tried to compile and install my app (which I have successfully compiled many times) for my iPod touch (first generation) I get the error that the target I have set requires ios 3.2 and above. I have looked around for a 3.2 update but have not be...

[iPhone] MotionEvents reduce sensibility

Hey guys, since my question was answered really fast and with a high quality the last time I decided to post here again. After hours of trying I finally was able to implement motionEvents in my application (oddly enough I first had to create a new view where I put all my stuff in - somehow it didn't work in a modified window-controller...

Perfromance Issues In CGContextDrawLayerAtPoint in iOS 4.0

I'm having some performance issues calling CGContextDrawLayerAtPoint in iOS 4 that didn't seem to exist in previous version of the OS. I'm copying a layer obtained from a bitmap context created with CGBitmapContextCreate to my view's context during a drawRect call. The view and the bitmap are the same size. The bitmap was created with...

Extra retain needed on NSOperation

I'm developing an iPad app. It uses an NSOperation to download something in the background, processed by an NSOperationQueue. I'm finding that, unless I add a retain to the NSOperation, I hit a crash after the operation's action is performed. NSOperationQueue's addOperation says it retains the NSOperation, and the NSOperation itself r...

Leaks (instrument) reports leaks in autoreleased objects

Update: this leak has been solved. If you are getting similar leaks and your application is multi-threading, you are most likely making UIKit calls from a background thread; make use of e.g. [NSThread performSelectorOnMainThread:] to route UIKit calls out to the main thread, which is the only place where they are allowed. I've been runn...

Is is possible to add a layer to a UITableView on the iPhone?

I've been trying to add a simple layer to my UITableView and it seems that the layer is drawn over the tableview components. So, is possible to put a layer under the table components or the only way would be to put the tableview into a some kind of view? ...

NSdictionary object in plist needs to be a array of arrays, how to convert?

I have a dictionary .plist that has a subarray in it, however during the conversion in Json in converts to an array. The item is "profile" in the image below, as you can see, it's a Dictionary, how do I turn programmatically convert into an array": I would also like the items in the dictionary to have Item 0, Item 1, etc. so it looks ...

How do websites like appcomments.com or androlib.com get data, particulary the reviews?

Do they just scrape or are there APIs? ...

libxml - issue with non UTF-8 urls

When using libxml2 to parse non-UTF8 encoded HTML, htmlDocContentDumpOutput returns empty data. URL used to test : http://www.asahi.com/national/update/0628/TKY201006280289.html and askmen.com I don't know encoding used before hand. NSData * data = [[NSData alloc] initWithContentsOfURL:_url options:0 error:&error]; CFStringEncoding cf...

Which compilers and build settings must I use in order to successfully use the "Build and Analyze" command in Xcode with Clang Static Analyzer?

It seems to work pretty randomly, sometimes I get it to work, but sometimes not - and until now I never wrote down the build configurations, settings and used compiler. Which ones can I use for Clang Static Analyzer in Xcode? And are there special build settings I must set in order to make it work? ...

Storing a CALayer/CGLayer on disk with iPhone

I have a CGLayerRef with content on it. How can I store this so that the app can quickly retrieve it and display it again? I tried converting it to a PNG and storing using Core Data but it's pretty slow to display, so I was wondering if there was a better way. ...

Anything faster than a UIButton?

Hi, I'm writing an iPhone app which needs an extremely rapid response for a touch event. Is there any object that will provide a faster response than the UIControlEventTouchDown result of a UIButton loaded from a nib? I'm open to any resources that don't require extensive digging around or reverse engineering. Thanks in advance! Luke ...

Submitting iPhone app to app store without testing on a device

I've tested my app thoroughly on the simulator, but I don't have an iphone/ipad/ipod touch on which to test the app. Are there likely to be bugs that dont expose themselves until I test it on the device? if i had a macbook, id take my code along with me and meet up with a friend or a stranger to test the app, but im working with a mac ...

How do i enable code blocks in an xcode iPhone project?

I'm trying to enable code blocks in our iphone application so that i can run the static analyzer tool included with xcode. I get this warning (or error, depending on which compiler i use) when i run the build and analyze task: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Framewor...

iphone deployment version requirements

Is there a specific version that the deployment requirements need to be set to in xcode to submit an app to the app store? I keep getting a "not accepting this SDK" error when I try to upload the binary but my target deployment OSs are all recent (3.0, 4.0). ...

Global Objects iphone

What is the easiest way to create a global object. I have tried declaring the object outside the method with no luck. @implementation UV_TouchpadViewController; NSMutableString *string = [NSMutableString stringWithFormat:@"text"]; ...

iphone switch views with buttons, SecondView over FirstView

Hi, to all im newbie developer and trying to create my first iPhone app, sorry my english not good i trying to make 2 views and the second view display over first view, but the second view is not full screen, is 320x400 i cut 80pixels, to see the buttons from the first view... and i making that with tutorials from one book, but in book...

UITableView: Recovering from NSInternalInconsistencyException after bad updates?

So I'm updating a tableview by inserting/deleting/reloading rows as needed, but, as I'm not 100% confident that the tableview will always update correctly, is there any way to fail safely from a bad batch of updates? Right now, I have this: // Try to animate the updates. If something goes wrong, just reloadData. @try { ...

Iphone SDK 4 ???

I installed sdk 4 on my mac. I need to submit a version which runs on OS 3, and OS 4? What are my choices? can i install sdk3 again, and submit my app. If i build with SDK4 is it going to run on devices with OS 3? I don't use any feature from OS 4 ...