mariohahn / MHVideoPhotoGallery

A Photo and Video Gallery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Newbie question: use_frameworks + import?

netwire88 opened this issue · comments

Hi,
I was able to successfully import MHVideoPhotoGallery via Cocoapods. However, I am having trouble importing the files:

platform :ios, '8.0'
use_frameworks!
pod 'MHVideoPhotoGallery', '~> 2.0'

I have these code but it isn't working,
In the Project-Bridging-Header.h file, I have:

#import <MMHVideoPhotoGallery/MHGallery.h>

In the controllers, I also tried import MHGallery and that didn't work, Xcode complains No such module 'MHGallery'.

Any suggestions? Is there a Swift version of the example project?

Ask help please?

First of all just use pod 'MHVideoPhotoGallery' without a Version, to always get the latest (:

You don't need to use a Bridge Header just use "import MHVideoPhotoGallery" in your Swift ViewController.

Worked wonders @mariohahn . Would it make sense to update the instructions on the GitHub?