Skip to content

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

@zipzou

Description

@zipzou

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions