We are having a problem where the FusionChart works fine on laptop but it does not work on iOS Devices. Wondering if anybody else is having a similar issue. It simply does not show the chart.
FusionCharts is a JavaScript charting library, in iOS devices charts are rendered using WebView component. You have to enable JavaScript in your project and then invoke HTML & JavaScript code to UIWebView component by adding its reference to viewController.
To parse the data you can use NSXMLParser for XML data or NSJSONParser for JSON data, these class libraries are native. JSONKit and Swifyjson are also frequently used parsing libraries for Objective-C and Swift respectively.
Take a look at https://github.com/AnyChart/anychart-ios-objc-sample sample for both iPhone and iPad
http://www.anychart.com/integrations/ (i work in that company)
Related
I'm building an iphone app in Phonegap and jQuery Mobile. Using very basic elements so far, but my headers are not displaying in the xcode iphone simulator (see the screen shot). Anyone knows what the issue might be?
Here is the html structure I've used: http://pastebin.com/czRyhRhM
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:
I came across this link:
http://ofps.oreilly.com/titles/9780596805784/
which seems to suggest web app can be converted to native iphone without writing a single line
of objective-c code. But the book mentioned there is outdated now and things may have changed a lot.
Are there open source software that will allow me to automatically convert my web application to native iphone ( or android) application? By the way my web application is html5 canvas based animation application with lot of html and css as well.
PhoneGap doesn't generate native code for you: it creates an application consisting of a WebView and throws your HTML code on it. From personal exerience I can add that the performance is quite slow, on both iPhone and Android, compared to a native app.
jqTouch creates a nice way to access your web application, but the application remains a web application residing on your site, plus you have to use some jquery for styling.
Apparently the only one that actually does generate native code is Appcelerator Titanium. On RhoMobile I never managed to get to the point to actually write some Ruby code because you have to know all the Ruby in he word just to install it on your Mac.
So the verdict was to sit down and develop the app in objective-c.
Have you looked at PhoneGap?
Simple steps to put your html app into iOS native container, without coding:
Download xCode
Download simple web view app from https://github.com/nomtek/iOSWebViewApp
Open simple web view app within xCode
Add your HTMLs to the project file structure
Run your app and voila :)
This approach is good if you don't need access to any phone specific features, just a standard Web View. Loading time will be short as this approach doesn't load any extra libraries.
I've been using JQuery draggable/droppables in my application from last 1 year. Now, the application needs to be supported over iPad and iPhones.
Known, above JQuery won't support drag/drop over iPads...
I'm looking for a some JQuery plugin or so which I can connect to my existing JQuery codes for drag/drop over iPad.
After googling, I found some alternate ways like, JQTouch, jquerymobile etc.. But, it looks I would then need to do massive changes (or, write a complete drag/drop things from scratch) in my application :(
My application is very heavy and hence looking for some quick/easy way to connect my existing JQuery solution into iPad touch events etc....
Please help
Thanks in advance
This project will allow you to use jQuery UI on the iPad:
http://code.google.com/p/jquery-ui-for-ipad-and-iphone/
https://github.com/furf/jquery-ui-touch-punch
this will work with draggable.. dont even need to change your code when using draggable!
I am trying to use Aptana to build an IPhone web application. I've never use Aptana. I downloaded the iphone support and started a new project. It is now asking me if I want to import a javascript library and lists the "big ones." Will IPhone's Safari be able to use these, specifically jquery? I saw that jquery had a special iphone library so my guess is no.
Should I tell it to use jquery (or other library) or should I download the special iphone javascript subset manually and try an integrate it in my project?
As far as I know JQuery should work fine on the iPhone. The specific libraries you are talking about must be additions to take advantage of iPhone only features like being able to handle the display orientation event or maybe use the webkit css animation extensions.
Although you will need to be careful with events since most mouse related events on the iPhone behave a little different from what you might expect. This presentation by PPK offers some clues about it:
http://yuiblog.com/blog/2009/04/27/video-ppk-jsevents/
Yep, iphone should run jquery just fine. The javascript support is surprisingly capable. Although you may want to look at some of the iPhone specific libraries out there. I forget their names. iUI I think?