iphone

What is the best way to secure a RESTful API to be accessed on an iPhone.

I am looking for some suggestions on how to secure access to a RESTful API which initially be used by an iPhone application, but will have other clients in the future. The data exposed by this API must be kept secure as it may contain health information. All access will be done over HTTPS. I was thinking that I'd like to require pre-reg...

IPhone app with SSL client certs

I'm building an iphone app that needs to access a web service over https using client certificates. If I put the client cert (in pkcs12 format) in the app bundle, I'm able to load it into the app and make the https call (largely thanks to stackoverflow.com). However, I need a way to distribute the app without any certs and leave it to ...

Problem with accessing variables/functions from subclass Objective C

Hi, I am having a problem with accessing public variable 'activity', which is a UIActivityIndicatorView type, see class declaration below in QuickStartViewController.h: @interface QuickStartViewController : UIViewController <ABPeoplePickerNavigationControllerDelegate> { @public IBOutlet UIActivityIndicatorView *activity; } @property (...

iPhone SDK- Error from Debugger: The program being debugged is not being run.

i followed the exact instructions on iPhone SDK Developers Portal by launching Assistant found on the first page. But i still gets the same error event though i deleted the provisioning profile, certificates many times and repeated the same process over and over again. Please HELP! ...

iPhone matrix multiplication and inversion

Hi all, I'm trying to apply a Kalman filter to the data coming out from the iPhone accelerometer. I need to perform matrix multiplication and inversion as fast as possible, so I was curious about the possibility of using the GPU to perform these two tasks. As of now I found only one reference for the matrix multiplication: float mBone01...

Saving image to Documents directory and retrieving for email attachment

THANKS..This Works now. I having trouble figuring out NSBundle & DocumentDirectory data, I have a Camera Picture "imageView" that I'm saving to the NSDocumentDirectoy and then want to retrieve it for attaching to an email, Here the saving code: - (IBAction)saveImage { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentD...

Reorder-able UITableView with Max # of Rows per Section

Hi guys, first off, I'd like to say that this is my first time posting on StackOverflow. I'm new to iPhone dev and programming in general, having recently completed Stephen Kochan's Programming in Objective-C 2.0, and parts of Erica Sadun's iPhone Cookbook. Just reading answered questions on this site has helped me a lot, so I owe a big ...

Laying out & sizing of subviews in a UIViewController

I have an app with with a UITabController and each tab is a UINavigationController. The root of one of my UINavigationControllers is a UIViewController. Inside that view controller's view, I want to layout some subviews, but I'm confused as to where & how to lay them out in a way that will be resolution independent (i.e. not hardcode va...

label not updating with picker view

I have a pickerview pulling from a datasource. I have code to update a label in the didSelectRow function, but the label is not updating. When I print the value to the NSLog, the proper value is printed. Is there something special I need to do to hookup the label so that it updates when the didSelectRow is eneter? - (void)pickerView:...

Stop deceleration of UIScrollView

What's the best way to immediately stop the deceleration of an UIScrollView in iPhone 3.0? I would like to keep the deceleration of the UIScrollView until it naturally stops or the user performs a certain action, whatever happens first. Thanks! ...

UITableView problems

I've added a UITableView component to a ViewController in Interface Builder to make it easier to customise as the UITableViewController won't let me set a background image. I've then implemented some basic functions just to test if it works, but cannot get it to display any cells - does anyone have any suggestions on how to get it worki...

Settings bundle MultiValue default value not working

I have created a Settings bundle for my iPhone app, with a multivalue specifier called Choice 1. The titles and values arrays are both correct - titles is strings, and values is 1-5. I set the default value to be 5, but it always stays as the first title in my array, and also the actual value doesn't appear next to the title of the ...

Confused With This Math Answer Using Double Type Variable

This is really weird, hopefully a fresh pair of eyes can help me figure this out. I happen to be using this code in an iPhone App, but I believe it's using simple C code so not sure this makes a difference or not. I have the user input a number (in this case the num will be 2.2). I then divide that number by 0.2. On my calculator I get...

Determining Length of Double Type Variable in C

I am using the following code to come up with a number. NSString *userNameOne = txtUserName.text; double numOne = [userNameOne intValue]; double agedecade = numOne/10; double betaage = 0.23260; double meanage = 5.64301; double one_age = agedecade - meanage; double age_final_var = one_age * betaage; If the user input 55 into the num...

How to debug iPhone app errors that occur before the first line

I have a fairly simple app. It compiles fine. Unfortunately, when I Build and Go, it fails before even the first line of code, thus making it impossible for me to even debug it. Where do I start? I do have the stack track though. ...

DNSServiceQueryRecord blocking method?

I am using the following code to peform an SRV record lookup in an iPhone app, which utilises the callback (resolveCallback) to handle the result. DNSServiceRef sdRef; DNSServiceErrorType err; err = DNSServiceQueryRecord(&sdRef, 0, 0, [authorativeFQDN U...

FBConnect and personal upload email address

I am writing an iPhone app that needs to be able to upload photos to Facebook as a side effect of sending them in an email. It seems like a gigantic pain to create the album and upload the photos; is there any way that I can get the user's personal upload email through the API and just add that to the recipients in the email that is sent...

FBConnect iPhone: uploading a photo album

Can anyone provide an explanation of how I would go about uploading several photos to Facebook from my iPhone application using FBConnect? I've been reading the documentation, and I'm sort of stumped. ...

Saving AddressbookUI address.text to Documents directory for use in InApp email.

I was trying recycle code for saving an image and attaching it to an email, with no luck. After I get the three values out of the PeoplepickerNavigation controller I want to save them for use and place them as text into an email. All I get now is a placed image called "addresssend" in my email body, how would I extract the text from the ...

Most effective "architecture" for layered 2D app using OpenGL on iPhone?

Hi all. I'm working on an iPhone OS app whose primary view is a 2-D OpenGL view (this is a subclass of Apple's EAGLView class, basically setting up an ortho-projected 2D environment) that the user interacts with directly. Sometimes (not at all times) I'd like to render some controls on top of this baseline GL view-- think like a Heads-U...