ios

OAuth Consumer Library for Obj-c that works with many service providers

Hello, I'm developing an iOS app that needs to connect to Twitter, Facebook, Google, Yahoo, Gowalla and Foursquare via OAuth. I have been using http://github.com/dbloete/oauth-objc and that works fine with Twitter (OAuth v.1, basic implementation), but has problems with everything else (it seems that each provider has different standards...

Millisecond sleep in C on iOS4

Im trying to sleep for a specified amount of millisecond in C on iphone but I keep getting some complaints on the console: Detected an attempt to call a symbol in system libraries that is not present on the iPhone: nanosleep$UNIX2003 called from function ... Detected an attempt to call a symbol in system libraries that is not present o...

Parsing 64-bit unsigned integer on iOS.

I have very big unsigned integral number in NSString. This may be big to 2^64. Is there an existing functions/classes parsing this? As I know, it's unsigned long long value, but, It's hard to know what kind of method should I use to parse this. ...

Can't solve, "Can't merge models with two different entities named"

I'm working with a Core Data project in iOS 4.1 (targeting 3.1). When I add a Data Model version I get the dreaded "Can't merge models with two different entities named xxx" error." Cleaning Targets does not help. Deleting the build directory does not help. The only thing that solves the issue is deleting the previously installed version...

How do you make UIWebView Look exactly like mobile safari when a page loads? (not super zommed in)

Hi guys , how do i make my uiwebview look exactly like safari when a page loaded , take for example this page http://www.240-voltz.com/ it does not load like safari where i can choose where to zoom in? cant upload images need 10 reps ! ...

Increasing thr UIPageControl Size in iOS

Hi I want to incease the size of UIPAgeControl on iOS... on google i've found this http://www.onidev.com/2009/12/02/customisable-uipagecontrol/ was wondering is there any other way....? ...

iPhone multitasking and webservice calls

Within my iPhone application I periodically make calls to a webservice, providing the endpoint with a list of numeric IDs. The webservice then returns information relating to the IDs it receives. This is all well and good. However, I would like to be able to provide functionality whereby the user will receive a local/push notification w...

What is the difference between GCD Dispatch Sources and select() ?

I've been writing some code that replaces some existing: while(runEventLoop){ if(select(openSockets, readFDS, writeFDS, errFDS, timeout) > 0){ // check file descriptors for activity and dispatch events based on same } } socket reading code. I'd like to change this to use a GCD queue, so that I can pop events on to the queue...

Swipe to delete UITableView help

How can I delete a UITableView row on swipe? I know the question has been asked, but I get only errors. Here's the code: -(void)tableView:(UITableView*)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath { } - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRo...

Two property changes in the same animation block have different durations. Why?

In the following UIView animation block, I do a CGAffineTransformMakeScale and a CGAffineTransformMakeRotation, and though the duration is set to 1.0f, the scale goes really fast and the rotation goes in 1 second like it should. It must be my lack of understanding about how AffineTransforms are applied but I can't figure it out. What g...

Can't undo a scale transform without undoing a rotation transform...

Here's a follow up to a previous question. My code below animates a square by scaling it and rotating it. It does this by making a rotation transform and adding a scale transform to it. That works fine. When it's done, it calls throbReset. I used to have throbReset just set self's transform to a CGAffineTransformMakeScale and that w...

How do I popViewControllerAnimated after a delay?

I have a UITableViewController that is presented with a list of choices. After the user taps one, I'd like to return to the previous view. The return seems too quick with the code I'm using though. I'd like to pause for 0.2 seconds or so to give the user time to see their selection become checked. Here's the code I'm using now: - (void)...

How do I build a game that only supports Game Center if it's available on the iPhone?

I'm about to begin building an iPhone game that will make use of Game Center Achievements and high scores, but I'd also like to have a version that works on iPhones that don't have Game Center (i.e. iOS version < 4.1). Can I have two versions of the same app in the app store, one for game center, one for without? Or should I design the...

How to turn NSArray of NSDictionarys into a nested NSArray of NSDictionarys

If I have an NSArray (or mutable array) with several dictionary objects (each dictionary is a Person) like this: [ { forename: chris, surname: smith, age: 22 } { forename: paul, surname: smith, age: 24 } { forename: dave, surname: jones, age: 21 } { forename: alan, surname: jones, age: 26 } { forename: cecil, surname: reeves, ...

How to increase minimum iOS version for iPhone app installation?

I recently submitted a new version of my app to the app store, and increased the Deployment Target to 3.2, to make the app no longer able to install on iOS 3.1.3 which is not compatible with it. However, when the app went live on the store, it still is listed as "Compatible with iOS 3.1.3 or later." How can I increase the minimum iOS ver...

How do I get an app to show up in the Application Loader?

I added a new App ID and distribution profile then went to iTunes Connect and added a new application from the Manage Application link- Uploaded screenshots and the icon. So what else do I need to do to get the app to show up in the Application Loader? ...

Trouble changing color of the pin iOS MapKit

Hi guys, I'm having trouble changing the pinColor for an annotation in MapKit. When I don't try to implement the mapView:viewForAnnotation: method everything works (the annotation is added) but when I try to change the annotation view, the simulator crashes : Here is the code : MapViewController.h #import "MapViewController.h" #impor...

Internal scripting/programming language allowed in an iPhone App Store app?

I've heard some conflicting things about the acceptability of scripting languages (e.g., Lua) in apps for the App Store. I'd like to hear from anyone who understands the policy regarding apps which contain some level of programmability, or someone who has had experience submiting such an app for approval. For instance, suppose I want t...

Sorting an NSArray using another NSArray as a guide

So, imagine you have a couple of arrays, Colors and Shapes, like this: Colors: { Yellow, Blue, Red } Shapes: { Square, Circle, Diamond } Now, if I want to sort Colors into alphabetical order I can do something like this: NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:nil ascending:YES selector:@selector(loc...

Access metadata (exif tags) of image taken by UIImagePickerController - iOS/iPhone

Is it possible to access the metadata of an image captured by UIImagePickerController in iOS? I understand this can be done with AssetLibrary framework for images captured by the camera application (or otherwise present in the iPhone photo library), but can a developer access any of the metadata/exif info from within an application right...