kxmenu icon indicating copy to clipboard operation
kxmenu copied to clipboard

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

Open zipzou opened this issue 9 years ago • 0 comments

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.

zipzou avatar Jul 23 '16 12:07 zipzou