Use WKWebView in a UICollectionView cell - uicollectionview

I use swift 3 and Alamofire to download pdf files. I would like to show the files in a UICollectionView with WKWebView but I cant figure out how. It’s no problem to show just one pdf file at a time but not in the collectionview. For example can’t I add the WKWebView to the cell.
I can do it with a UIWebView but then I have problems to show images. It’s mostly pdf files but it would be great to even support images which WKWebView can view.
So, is it possible to use WKWebView in each cell in a UICollectionView? Or is there any other way to show downloaded pdf:s (and sometime images)?

Related

Multiple ImageView's that allow for deletion

I am currently trying to add multiple imageviews like in this picture (http://i.imgur.com/DEkoBD0.png) to a view controller. I would also like the option to be able to delete specific images, and also have the whole view controller in a scrollview incase the user wants to add numerous images.
So far I have one imageview that can be set to either a picture from the camera or from the photo library, what I would like is when a user add's a image, another option displays next to it to upload another image such as the picture in the link I provided.
I am currently using the Xcode 5 with storyboards and developing for iOS 7 also.
Any help is appreciated.
Thanks.
Simply use a UICollectionView !
Reference : https://developer.apple.com/library/ios/documentation/UIKit/Reference/UICollectionView_class/Reference/Reference.html
It will allow you to add functionalities like delete or add for example (w/ ScrollView ;) )!

How to save video overlay iphone xcode

I have created an overlay to an MPMoviePlayerController using the following code, which essentially adds a subtitle in my iphone xcode project:
[_mpMoviePlayerController.view addSubview:lblOverlayView];
I want to now be able to save the video (and eventually facebook, but I don't NEED help with that, just the saving would be fine) with the subtitles. It is playing a preloaded video, and the dynamic part is the subtitle, which is whatever text the user enters (which becomes the value of lblOverlayView. If you have any other ways of adding text that can very over the top of a preexxisting/preloaded video and then saving/emailing/facebooking it, that would also be great! Just some way of doing it!!
Any help I can get will be hugely appreciated.

xCode Video player with png overlays

I am new at iOS development. I wish to ask you how if it possible to play video with images overlay. What I`m wishing to do is play some mp4 file, and on top of it put some png file that the user can change (UIimageview on top of video). At android development i used "media view" and could control it any way i wont. Didn't found in xCode similar view.
Take a look at MPMoviePlayerController. You can use that's view the same as any other UIView.

App should open links with WebView not with Safari

I've got an UITextView in my app where rss feeds are loaded in. Now I want that when there's a link in the textview and you tab on it, my webview should open that link not safari. How can I do this?
Hey,
It will be difficult for you to know where you have clicked in your UITextView.
Honestly the best way for you to do that it to use the Three20 framework.
I don't think this is possible in a UITextView without significant effort.
Just an idea, but could you not load your RSS feed directly into a UIWebView? - (You can display a HTML formatted string in a UIWebView). Subsequent link presses could then by hijacked using the UIWebView delegate and handled by your application to (for example) open them in another UIWebView. Take a look at the UIWebView interface & delegate to see if it might help.
Hope this helps!
Nick.

Objective-C - What's techniques/objects are being used

On my iPhone, when I go into the Settings app, I see "Airplane Mode", "Wi-Fi", "Notifications", etc. and I'm able to scroll through pages and pages of settings.
I'm new to objective-c and I'm trying to duplicate the functionality in my own app, but I don't know enough about the objects and techniques to know what to ask or what to look for. :)
With that in mind, can someone please explain what's going on with the settings app? What is this using? Is it a UITableView that allows me to scroll down the page? What control is being used to store the text "Airplane" mode? What is happening when I click on the ">" and see a new page?
Any tips are appreciated.
While nobody outside Apple can be 100% sure how they implement their apps, some reasonable guesses would be:
The main screen is a grouped UITableView. Each entry is a single cell.
The text and images in the cells are built using properties of UITableViewCell (e.g. the textLabel UILabel for the text "General"). Some of the more advanced items use custom cell views.
Each category view is another UIViewController, pushed onto the viewControllers stack of a UINavigationController.
The on/off switches are UISliders.
It is a TableView
Table View programming Guide
samplecode
These docs cover all you need