/FloatButton

添加一个全局悬浮标签~

Primary LanguageObjective-C

LevitationButtonDemo

demo示例

使用方法

  1. 引入‘MNAssistiveBtn’ 文件

  2. 进入AppDelegate.m- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {...}方法中,添加以下代码即可

MNAssistiveBtn *btn = [MNAssistiveBtn mn_touchWithType:MNAssistiveTypeNone
                                                 Frame:frame
                                                 title:title
                                            titleColor:[UIColor whiteColor]
                                             titleFont:[UIFont systemFontOfSize:11]
                                       backgroundColor:nil
                                       backgroundImage:[UIImage imageNamed:@"test"]];
[self.window addSubview:btn];

文章介绍