#ifdef __IPHONE_8_0
//如果定义过,就编译这里。
login.modalPresentationStyle = UIModalPresentationOverCurrentContext;
#else
//如果没有定义过,就编译这里。
LoginTipViewController.modalPresentationStyle = UIModalPresentationCurrentContext;
#endif
这里需要设置模态弹出的modelStyle