一.addsubview
HYShareEwm *ewm=[[HYShareEwm alloc]initWithFrame:self.tabBarController.view.frame];//注意,声明添加的view 必须是全局
[ewm initSubviews];
[ewm addSubviewToSuperView:self.tabBarController.view];
二;present controler
// HYShareEwm *ewm=[[HYShareEwm alloc]init];
//
// UIViewController *rootViewController = [[[UIApplication sharedApplication] keyWindow] rootViewController];
//
// if (IOS8)
// {
// ewm.modalPresentationStyle = UIModalPresentationOverCurrentContext;
// [rootViewController presentViewController:ewm animated:NO completion:nil];
// }
// else
// {
// rootViewController.modalPresentationStyle = UIModalPresentationCurrentContext;
// [rootViewController presentViewController:ewm animated:NO completion:nil];
// }