ios4

how should nsdecimalnumber's be stored in the database?

What is the best way to store nsdecimalnumbers in a database? Numeric types like float, real and double are out, because it is important to preserve the precision for currency usage. The two alternatives I have considered are string and storing two ints, one holding the mantissa and one holding the exponent. The challenge facing the lat...

How to handle iPhone Simulator NSInvocation issue for iOS4.0+

For iPhone Simulator iOS4.0+, NSInvocation doesn't handle exceptions well. I came across a workaround to use objc_msgSend. When I tried it for the below invocation as objc_msgSend(target_, [invocation selector]) and commenting out [invocation invoke] under createResponseFromInvocation() hangs. I tried different ways of calling obj_msgSen...

iPhone 4.0:MPMoviePlayerController doesn't play the video properly

Hello, I am using MPMoviePlayerController class for playing the video in built-in media player on iPhone. The project works fine on iPhone 3.0 simulator or device, but it doesn't show the video view on iPhone 4.0 simulator or device, rather than i could able to hear the sound, no built-in player video display. Does anyone come across t...

launch 3rd party application from native iPhone apps

hi friends, i have to do one application that application should be launch from the iPhone native applications like calendar, contacts and mail box etc... is it possible to launch 3rd party application from the native app, whether apple allows the developer to do this. Thanks in advance... ...

Can in-app purchases be "gifted"? iphone / ipad sdk

Does anyone know if in-app purchase can be gifted? ...

Testing multiple iOS versions in Simulator

How can I test multiple iOS versions in the Simulator? I can only seem to test iOS 4.1. I would like to be able to test 3.x versions in the simulator as well. ...

How to detect Game Center Authentication popup

I've implemented the Game Center into my game. However, one thing bothers me which is how to detect when the Game Center launches the popup to sign in. If the user is quick with their fingers and the network is a bit slow, they are able to start a game before the popup starts, which is fine, but I want to pause the game while they sign i...

Best practice to send a lot of data in background on iOS4 device?

I have an app that needs to send date (using POST) to a server. This function has to be on one of the NavigationController sub-controllers and user should be able to navigate away from this controller and/of close the app (only iPhone4/iOS4 will be supported). Should I use threads/NSOperations or/and send data using existing asynchronous...

How can I ensure my iPhone app uses the Game Center sandbox?

I'm developing an iPhone game with Game Center integration. The game is being built as Debug (not release/distribution). On the simulator, Game Center always uses the sandbox properly. On the iPhone device itself, it will go for a few days using the sandbox, then suddenly decide to use the real Game Center servers (which results in an er...

iPhone4, UIWebView and HTML5

Hi, is there any list which HTML5 features the UIWebView supports and which not? I am interested mainly in: 1) localStorage/sessionStorage 2) offline manifest 3) web sockets 4) web workers In pre-iOS4 there was not an offline manifest support, which was necessary to program in objective-C, which - when done broke the localStorage s...

Xcode not building for iPhone after Upgrading it from 3GS to iOS 4.1 ??

i just upgraded my iPhone 3GS to iOS 4.1 and also downloaded the latest Xcode 3.2.4 and iOS sdk 4.1....i was working on an application on previous sdk iOS 4.0 but now when i build the project with new sdk xcode says No Provisioned iOS Device is connected...do i need to install a new provisioning profile for the project?? i cant figure ou...

Video Recording using AVFoundation Framework iPhone??

i am developing an application with the help of sample code from the WWDC 2010 http://developer.apple.com/videos/wwdc/2010/ example - AVCamDemo. in which i need to record a video from front camera of iPhone...since new iPhone 4 is not available at my place i am not able to test the code properly.. i would be really thankful if someone c...

How are background permissions actually managed in iOS4?

Hello, I'm a beginner at iPhone developing. Though I've read lots of guides and users' notes I have no exact and accessible answer to the following question: "Are there any ways to execute internal tasks (for example to listen for server activity) in background in iOS 4.x?" I know that only 3 kinds of tasks are permitted (audio, voip a...

What does a "_OBJC_CLASS_$_CATransaction, referenced from:" compile-time error mean?

Can anyone please tell me what is this error, I am trying to compile on xcode "_OBJC_CLASS_$_CATransaction", referenced from: objc-class-ref-to-CATransaction in RefreshTableViewHeader.o And this error "_kCATransactionDisableActions", referenced from: _kCATransactionDisableActions$non_lazy_ptr in RefreshTableVie...

iPhone "go to background" versus "quit" confusion

First some background; for the tl;dr version skip to "the problem" below. Background This is really more of a user interface question than a technical one, but I think it fits better here than on the UI site anyway. Since iOS (iPhone OS) 4.0 apps can run in the background, and actually always does so instead of quitting. Quitting an a...

Objective-C blocks as properties. Am I crazy?

Is that possible? ...

UIButton in UIView in UITableView = can't click the button

If I add the button straight everything goes fine. I'd really like to add it inside a view and still be able to click it. Here's the code: UIView *containerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 300, 60)] autorelease]; UIButton *footerButton = [UIButton buttonWithType:UIButtonTypeCustom]; footerButton.frame = CGRectMake(...

Is there any way to check the availability of iOS app names?

Is there any way to check the availability of iOS app names? Thanks! ...

where can i find an uncompressed video recording from iPhone 3G/3GS/4

Hi, I'm experimenting with video processing and I'm looking for uncompressed video frames from iPhone. It is possible to record them since iOs 4.0 by dumping a buffer from api to the file.. Google didn't help.. Anybody? Where can I find such videos to download, or perhaps there is an app for that? ...

How to create a single image from an overlayed image and a picture taken with iPhone?

There are countless apps out there that do this ... but I'm curious as to what suggested way(s) exists for producing the highest quality image. Example of what I'm looking to do: Be able to overlay an image of a mustache on top of the iPhone's camera. Optional be able to resize/rotate that image. Take a picture and superimpose the ove...