HHK1 / PryntTrimmerView

A set of tools to trim, crop and select frames inside a video
MIT License
856 stars 198 forks source link

How to use PryntTrimmerView in Objective-c? #13

Closed ajay2c9 closed 7 years ago

ajay2c9 commented 7 years ago

Hi, In my project i used both objective-c code and swift code. I already implemented the AVplayer for playing the video in my app.I drag and drop all 8 PryntTrimmerView files in my project.i called the files like below . @class AssetVideoScrollView; @class AVAssetTimeSelector; @class CropMaskView; @class HandlerView; @class PryntTrimmerView; @class ThumbSelectorView; @class VideoCropView; @class VideoScrollView;

I want to implement the code in objective-c . I add this in .h file @property (strong,nonatomic) IBOutlet PryntTrimmerView *trimmerView; after that i can't able to use the properties and delegate methods in .m files. please give suggestions to implement the properties and delegate methods in .m file using objective-c . I am using xcode 8.33.3.

Thank you

HHK1 commented 7 years ago
  1. Use version 1.0.1 of the project or below as you are running on Xcode 8
  2. You can copy the files, but I suggest to use a dependency manager instead. Currently we're supporting only cocoa pods: https://guides.cocoapods.org/using/getting-started.html
  3. To mix swift and objective-c please follow this guide: https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html