debugging rubymotion wrapped web view - ios

I'm trying to debug the webview wrapped by a "native" iOS rubymotion app, but I'm not sure what tools exist to do this. Specifically, I'm trying to debug the CSS and HTML of the application. Is there a way to do this using rubymotion or some other toolkit?

Here is how to do it for Android : https://developer.chrome.com/devtools/docs/remote-debugging#debugging-webviews
I would look for similar on iOS, or perhaps you can use Android for development then convert to iOS.

Related

Is it possible to convert a native iOS app to a web app?

I am trying to convert a native iOS application for work. Does anyone know of any way to do this? I have thought about using the MobileFirst platform, but I don't know if this is possible even with that. I have seen many things about converting HTML5 into a Swift application, but not the other way around. Any help would be greatly appreciated!
Your application is written in Native code and you want it to now be in web code. There is no conversion tool to do that. You need to re-write your app in HTML, CSS, JavaScript and so on...

Cocos2d-x javascript doesn't work on iOS but does on html5 and android

I've followed RayWenderlich's tutorial about creating cross platform cocos2d apps using javascript bindings. I know It's not the best and most updated guide out there, but it did the trick for now.
I have setup a project using the cocos2d-iphone with javascript template.
I'm having a problem getting a label's string:
On HTML5 & Android, using:
this._labels[i].getString()
works just fine, but on iOS, using the exact same code, I get a warning:
this._labels[i].getString is not a function
I did notice that switching from get/setString() to accessing label.string directly does work, however, I do want to maintain a single code base, and preferably not access members directly.
EDIT:
Same problem with a cocos2d-x 2.1.1 ios project

Phonegap and iPhone apps

I want to build an iPhone app, but I only know PHP, JavaScript, CSS and HTML. I heard that I can use Phonegap to build the app in javascript and it converts the JavaScript to Objective-C. Is that true? The phone gap documentation was hard to understand. What other solutions do I have?
Yes and no.
Phonegap (nowadays known as Apache Cordova) enables you to bundle web pages/applications as native phone apps. It also provides you with some JavaScript bindings to native phone APIs that you otherwise wouldn't be able to access (=with a plain webpage). These bindings include (just to name a few) Accelerometer, Camera and Compass. That's pretty much all it does - you still have to figure out how to write your application with JavaScript, HTML and CSS.
Try out how it works by checking out "Getting Started with iOS".
If you know all these languages you mentioned that is well enough for developing an iOS App(as well as you can develop the same apps in Android).
I would suggest you to go for PhoneGap(Cordova) framework to develop these apps. Using this framework you'll have to use HTML/HTML5, JavaScript, CSS, PHP and get the iOS App running on your device. Here to StartWith and then check out APIDocs. You will always get a lot of tutorials on google itself.
You can also refer This Question for gathering some knowledge about other frameworks available in market.
Hope it helps.
I would suggest Phonegap, but you can't use PHP with Phonegap apps directly... There are a few hacks around this though.
Although Phonegap is supposed to be "one codebase, distribute everywhere", if you want a really great looking app you'll have to spend a liitle time adjusting the UX for every platform or device. The thing I really like about Phonegap is that you can open up a HTML page locally on your browser and move thing around in firebug, making the process faster.

Create a Blackberry application with a webview (webapi) on OS 4.5

Anyone have some source code or something to do an application with html content?
I found it more easy than learning Java.
I want to do something like the phoneGap does but it works only with OS 5.0 and higher.
I found BrowserField but wouldn't work with 4.5 (field2 api not found), and BrowserContent I found it more difficult to learn.
There is no way to make a PhoneGap or any webworks-like application for SDK 4.5.
The reason is simple, SDK 4.5 does not support BrowserField2 class, this class plays the main role in rendering of webworks application.

WebKit implementation for iOS in Xcode

Is there any way to use WebKit for developing iOS applications in xCode? I'm pretty sure you can use WebKit for making Mac applications, but how about iOS ones?
Yes, just drag out a UIWebView from the Library. You have less control over the content but it works to display webpages and javascript. However it may or may not suit your needs, depending on what you're looking for—you haven't specified.
Documentation: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebView_Class/Reference/Reference.html
You can check my open source code here as a start project : https://github.com/sylverb/CIALBrowser

Resources