Can I convert my iPhone application to an API? - iphone

I have an iPhone application which should be converted to an library, so that I can use it as an API.
How do I do this so that other applications can also use it? (API).

You have to read a bit about the static libraries. It's easy.

Related

Salesforce Api implementation on iPhone

I am implementing salesforce api in my project. I downloaded code from the below link
https://github.com/developerforce/Force.com-Toolkit-for-iOS
But the problem is that i want this api on iPhone not on iPad.
When i am going to convert it on iPhone. I am fail. It is typical to convert it because of difference of code like split view etc.
I dont want split view just simple api. If you guys source code of it then share. Thanks.
(Note: I am using xcode not phonegap)
I think you're confusing yourself by looking at the sample app, the actual api library itself doesn't use splitviews as far as i know. Concentrate on what's in the ZKSforce directory, and not the sample SVNTest app.
There is a document link
:
http://forcedotcom.github.com/MobileContainer-iOS/Documentation/SalesforceSDK/Classes/SFRestAPI.html
here is the code:
http://forcedotcom.github.com/SalesforceMobileSDK-iOS/Documentation/SalesforceSDK/Classes/SFRestAPI.html#//api/name/requestForCreateWithObjectType:fields:

Framework for creating IPhone chat application

I want to create chat application in IPhone. Is/Are there any framework(s) which support the same? Do I have to use a third party tool for creating it? If yes, which one?
Thanks,
Jimmy
If you can write it directly you can create from Objective-C.In there nearly everything explained.
Here
But If you want to create in Javascript,HTML.There is a application Appcelerator Titanium Which you can develop the application in Javascript and HTML.You can look here to see a chat example with Titanium.Also Titanium converts code the objective C at the end.

iPhone / Android Apps & interacting with a website

Does it matter much what your website is programmed in (PHP/.NET/ROR etc) with regards to having an iPhone or Android app interact with it?
No, it doesn't matter and if you are trying to build a mobile browser based app, then it won't matter. But if that website provides API , then you can create your app however you want.
If you are making use of service calls, you need to bother about the service request/response formats (xml/json...) and its parsing methods... you need not to worry about the language used to implement those services.
No, it does not matter at all.

How to use native sqlite in ios' webview?

I just want to develop an ios app based on webview. The offline storage must be used. I know that html5 offline storage is supported by webview. But I just want to use a native sqlite file(not the one embedded in webkit) just like other native ios app. So could anyone please give me some clues?
Are you implementing the database via javascript? If so check out this great free eBook on building iPhone apps. The chapter about Client-Side Database should give you a running start.
http://ofps.oreilly.com/titles/9780596805784/ch05.html#ch05_id35933084
regards
Andrew
webSQL is available in UIWebViews.
However, if you're using Cordova the convention is to use the SQLite plugin. GIYF.
I personally like using web storage wrappers for this. Lawnchair.js and persistence.js were earlier wrapper solutions, but I like using Mozilla's localForage the most. It makes storing any kinda JS primitive/object/blob really easy.
localForage is just a wrapper over localStorage, webSQL, and SQLite. It has a really simple API and will choose the best web db for you based on what you wanted to store (was it serializable: localStorage. was it a [file Object] from an HTML input: webSQL). Your project can be a Cordova project or whatever. Don't matta. It'll work.

Using XML-RPC in iPhone apps

Is it possible to use XML-RPC calls in iPhone application (what approaches are the best)?
Are there any constraints with XML-RPC?
Thank you,
Paul
I have recently come across this library, take a look at the description at the end.
Hope you find it useful.
https://github.com/eczarny/xmlrpc
You might be interested in the WordPress for iOS app. It's completely open source and uses an XML-RPC library.
http://ios.wordpress.org/