-
Notifications
You must be signed in to change notification settings - Fork 359
The header file for iOS should be UIKit/UIKit.h #34
Copy link
Copy link
Open
Description
When I built it for iOS 8 in the Xcode 7, it will report some errors. After checking, the header file has been wrong. The Foundation is the kit for Mac OS X, but not for iOS. So the header file importing of KxMenu.h should be UIKit/UIKit.h.
#import <UIKit/UIKit.h>
And there is some warnings for iOS 7 and later. The first is [menuItem.title sizeWithFont:[UIFont systemFount]] in -mkContentView. It can be used as const CGSize titleSize = [menuItem.title sizeWithAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14]}];
The second is a dismissMenu warning. It can add a declaration in the KxMenuView like this @interface KxMenuView : UIView -(void) dismissMenu:(BOOL)animated; @end to avoid this kind of building warning.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels