Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The header file for iOS should be UIKit/UIKit.h #34

Open
zipzou opened this issue Jul 23, 2016 · 0 comments
Open

The header file for iOS should be UIKit/UIKit.h #34

zipzou opened this issue Jul 23, 2016 · 0 comments

Comments

@zipzou
Copy link

zipzou commented Jul 23, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant