How do you optionally use iPhone OS 3.0 features in a 2.0 compatible app?

Apple has an example of how to do this, specifically making a 2.x-compatible app that uses MFMailComposeViewController…. http://developer.apple.com/iphone/library/samplecode/MailComposer/index.html the answer involves compiling with the 3.0 SDK, setting the deployment target to 2.x, ensuring that the 3.0 frameworks are marked as “weak” references, and then doing the right thing to make your code work if you’re … Read more

How do you prompt the user to rate your iphone app without waiting for them to delete the app?

I would check out the Appirater project that Arash Payan has put together. Pretty much handles the checking and displaying of the “rate my app” prompt, and brings the user right into the review portion of your app on the App Store. It’s a very clean, and elegant way to provide that minimum barrier so … Read more

iPhone In App Purchase – response.products are still empty?

Another important step that is often overlooked is you need to make sure you have an iOS Paid Applications Contract setup which is located under the “Contracts, Tax, and Banking” section of iTunes connect. First you have to click on the request button, then you have to click on the 3 Set Up buttons (Contact … Read more

How to add hours to an NSDate?

I’m not entirely sure what you are trying to do, but you can create an NSDate object by adding time in seconds on to another NSDate using: – (id)dateByAddingTimeInterval:(NSTimeInterval)seconds // eg. to add 8 hours to current time: NSDate *mydate = [NSDate date]; NSTimeInterval secondsInEightHours = 8 * 60 * 60; NSDate *dateEightHoursAhead = [mydate … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)