m1entus / MZFormSheetPresentationController

MZFormSheetPresentationController provides an alternative to the native iOS UIModalPresentationFormSheet, adding support for iPhone and additional opportunities to setup UIPresentationController size and feel form sheet.
MIT License
973 stars 146 forks source link

"Use of @import when modules are disabled" Error #116

Open hemster opened 8 years ago

hemster commented 8 years ago

After do pod install in my OC project, I tried to put #import "MZFormSheetPresentationViewController.h" in my Home View Controller and put MZFormSheetPresentationViewController *formSheetController = [[MZFormSheetPresentationViewController alloc] initWithContentViewController:self.navigationController]; in a method.

However, I got 3 same "Use of @import when modules are disabled" errors in MZTransition.h, MZFormSheetPresentationViewControllerAnimatedTransitioning.h and MZFormSheetPresentationContentSizing.h

The Xcode8 indicate these errors are caused by this line "@import UIKit;"

Does anyone how to fix it?

Sensotec commented 8 years ago

Having the same issue, have tried multiple fixes. No luck so far. Seems like you cannot use this library in an objective c++ class.

levey commented 7 years ago

Created PR in https://github.com/m1entus/MZFormSheetPresentationController/pull/147