How to access to the file UIWebView.h? - objective-c

Obviously Xamarin UIWebView is officially not available for tvOS.
Some developers were able, however, to enable the WebView control on tvOS by editing the file Availability.h.
Is it technically possible to use the same approach within Xamarin on some kind of UIWebView.h?
If yes, where is it located in the source tree?
I would like to use the object UIWebView in a Xamarin tvOS project, which is prohibited by Apple. There is already a detailed discussion on how to implement a workaround in Objective-C, but I would like to implement a similar workarround in Xamarin C# like in this SO question: "Web app in tvOS".
How can I do that?

Related

How to add badges to a source list?

I just wanted to know how to to implement badges like in the mail app from osx to my application without using PxSourceList : http://grab.by/nJ66
My app is developed with rubymotion for os x.
Thanks in advance.
As far as I know they are not available "out of the box"... PXSourceList has the best implementation of badges I have seen. Either use PXSourceList or look at the source code for it and be inspired to how it should be done.

Library or API for file browser view?

I would like to implement a file browser view in my application so users can open files using a side panel similar to the browsers in XCode, Text Wrangler and some other programs.
Before I go off implementing another one of those browsers from scratch, does anyone know if there are existing libraries or APIs that already does this?
Google doesn't turn up with much and most of the searches point me to NSOpenPanel which I believe doesn't do what I want.
Thanks in advance.
The Cocoa class that is used to display hierarchical lists is called NSOutlineView.
Outline views provide several configuration options to adjust the appearance.
The content can be provided by implementing a data source protocol or via Cocoa bindings.
Apple has some sample code online that should get you started (it's a file browser - so maybe you can use larger parts of that sample):
https://developer.apple.com/library/mac/#samplecode/SourceView/Introduction/Intro.html

Download and display PDF with Trigger.io and jQuery Mobile

We are going to develop a mobile app (iOS and Android), which should provide downloading and storing several user-selected PDF files and viewing them within the app (iOS with WebView) or with an external PDF Viewer (Android).
My Question is: Is this possible with Trigger.io? I didn't find anything concerning this in the official documentation. Can we do something with the file or the child browser / tabs module? If yes, do you have any examples?
Note: We will use Backbone.js and jQuery Mobile as additional libraries.
The Android webview doesn't allow for inline opening of PDFs - you can test that by opening e.g. http://trigger.io/cross-platform-application-development-blog/wp-content/uploads/2012/05/trigger.io-whitepaper.pdf in your stock browser.
On iOS, you can use:
forge.tools.getURL('my_file.pdf',
function (file) {
forge.tabs.open(file);
}
);
But that won't work on Android (tested on 2.3, 3 and 4.0).
Short answer - yes.
Downloading, storing, then showing/referencing later can definitely be done. Check out the forge.file documentation.
I have not tried the child browser feature yet. Although the tabs module will work, I think its best to just let the device (and its user settings) decide how to display/render the PDF. I am only saying this because my devices (especially the Android ones... 2.3 and 4.x) tend to behave differently. Either way... the device's "back button" always gets me back to where I left off in my trigger.io app.

Is there a cocoa touch property pages like table view form renderer viewcontroller?

Is there any free or opensource property pages like form renderer for ios applications?
Or I missed something, and I can create these kind of objects with the base framework?
I want to render forms inside applications, not on the Settins menu.
Is there any built in way or any lib what do it for me or I must make the plist parseing and table cell lifecycle management.
Your question is a little vague, but I think what you want to do is have functionality like that available in the Settings app within your application. I have used InAppSettingsKit and been quite happy with the results. It's free and open source. I think they ask you to credit them, but it is not required.

How build a custom control in Xcode for the iPhone SDK?

I want to build a custom control to reuse in my project which consists of two UITextFields that are linked together + a label.
It is starting to become repetitive across my App and smells of code duplication ;)
However, I wonder what is the best aproach here.
Is it best do everything by code in a controller or is posible do a visual thing like the ones built-in in Xcode?
You can build an Interface Builder plug-in for this. It's fairly straight-forward. To get started, read the Interface Builder Plug-In Programming Guide. It even has a quick, step-by-step tutorial to get you started. Apple recommends creating a plug-in to IB for just your case...
I don't think this is possible. I briefly looked at the IB Plug-In Programming Guide and apparently Interface builder plugins are implemented through Custom Cocoa Frameworks. That is, your plugin is defined in a framework which is loaded in Interface Builder. IB looks in the current projects frameworks to find any custom components defined and will load plugins accordingly. It is not possible to use custom or third party frameworks on the iPhone so I don't see how IB would make a connection here. If somebody has more info I'd love to see this discussion continued.
This is fine except it is for the iPhone. The iPhone presents a more difficult environment to create the plug-in for interface builder. It should be possible but I have yet to see a Xcode project that does this. They are all limited to creation of desktop "AppKit" versions, not iPhone "UIKit" versions of the plugins for IB.