Generate a thumb view from AVAsset.
It's easy to use.
Please see the example or follow the instruction below:
-
Download the project.
-
Drag and drop "AssetGenerator" folder inside your project.
-
Import "AssetThumbScrollerView.h" header
-
To add thumb view write following code in your viewDidLoad method:
AVAsset *asset = [AVAsset assetWithURL:url]; UIView *view = [[AssetThumbScrollerView alloc] initWithFrame:_thumbScroller.bounds andAsset:asset]; [_thumbScroller addSubview:view]; _thumbScroller.contentSize = view.frame.size;
Where _thumbScroller is a scroll View.