UIWebView to WKWebView on youtube-ios-player-helper-swift - swift

My app uses the framework youtube-is-player-helper-swift, found here: https://github.com/malkouz/youtube-ios-player-helper-swift
It is an implementation of the original youtube-ios-player-helper, for Swift.
It is working fine, but it is based on UIWebView, deprecated in iOS 12.
I'm looking for a version of this framework using WKWebView or some help to change this one.
Anyone can point me to a possible solution?

You can use youtube helper
from hmhv. Which uses WKWebView instead of UIWebView.

Related

How to use a TVML document in a Swift tvOS project?

I have a project for tvOS written in Swift. Now I received a TVML document that I need to use in my project. What should I do? Can I initialise a UIViewController instance with a TVML document?
TVMLKitchen helps to embed TVML documents in tvOS apps written in Swift. It has everything that I need to solve my problem and it is easy to use. I hope that it will be useful for all tvOS developers.

UICollectionView in ios 5

I just learned about UICollectionView after creating the same functionality in a custom class. So I am thinking about using deleting all that code I wrote and just using UICollectionView.
I know my app gets a lot of installs on iOS 5. And I know a lot non tech savvy friends and family still have it installed.
I googled this and it says I can use some other's guys library(another thing I should have known before writing my custom class). But the answer was not definitive.
So my question is, does Apple include a bridge for iOS 5 or will my app just fail if I use UICollectionView?
I have my target deployment set to 5.0 and it is not giving me any warnings.
Venkat
UICollectionView is iOS6 only. You can include extra code to check for iOS6 and use your custom class on iOS5. But there is no way to use an actual UICollectionView in iOS5.'
Thats what that "other guy's library" does. It has an iOS5 compliant clone of UICollectionView and checks based on the OS which to use.
Maybe you want to try this as an alternative:
https://github.com/steipete/PSTCollectionView

Attach a webView instance variable to a Web View object

Im trying to follow this tutorial
The tutorial is a bit out dated because NIB files dont get used anymore like this with the xCode storyboards. So my question is how do I attach the webView instance variable to the Web View object? This is probably a really basic question hence im new to this.
Thanks
Oke i found out how to do it.
Here is a tutorial how to create a webView, the video starts at the whole delegate thing where i struggled with.
The video is still for the interface builder instead of the storyboard but the idea is very much the same.

asynchronous image loader in UITableView

Does anyone know any good library/tutorial that can do asynchronous image loading for a cell in UITableView? I am looking for a method that doesn't involve too much code changing in my current code and easy to integrate to a regular synchronous UITableView.
Try looking into Three20
An open source library written by the guy who wrote the official "Facebook" app for iOS.
Moreover, the code of the facebook app is based on that library.
If you rather do it by yourself, read MHLazyTableImages, it comes with a github project. It's an adaptation of Apple's LazyTableImages. Or you can use HJCache.
Fully-Loaded is another one which is pretty simple. It's more a generic image view loaded which you can use in custom table view cells.
https://github.com/foursquare/fully-loaded
I quite like SDWebImage, which is an asynchronous image downloader with cache support with an UIImageView category.
https://github.com/brendanlim/SDWebImage

How to use NSComboBox in iPhone

M a new comer to iPhone world ,i want to use NSComboBox(DropDown list somewhere) in my application. but not having any idea....m totally blank about NSCombobox...could any one guide me..Thank you.....
The iOS Cocoa Touch framework doesn't include anything like an NSComboBox. You might want to look into using the combination of a UITextField plus a "pop-up" UIPickerView for list selection.
NSComboBox does not exist on the iPhone. It's part of the AppKit framework, which means it only exists on the Mac. The iPhone's GUI framework is called UIKit.
You could always write your own.
Maybe you open wrong project style. Because NSComboBox is under Mac Application.
You should use project for iPhone application.