摘要:
UIViewController* transparentView = [[UIViewController alloc] init];UIViewController* controller = self.view.window.rootViewController;transparentView.view.backgroundColor = [UIColor blackColor];transparentView.view.alpha = 0.5f;controller.modalPresentationStyle = UIModalPresentationCurrentContext;[ 阅读全文
摘要:
//ARC Helper#ifndef WS_SUPPORT_ARC#define WS_SUPPORT_ARC#if __has_feature(objc_arc_weak) //objc_arc_weak#define WS_WEAK weak#define __WS_WEAK __weak#define WS_STRONG strong#define WS_AUTORELEASE self#define WS_RELEASE self#define WS_RETAIN self#define WS_CFTYPECAST(exp) (__bridge exp)... 阅读全文