摘要: BOOL _isFullScreen; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(rotated:) name:UIDeviceOrientationDidChangeNotification 阅读全文
posted @ 2020-11-21 10:30 coderiding 阅读(267) 评论(0) 推荐(0)
摘要: - (UIViewController *)mx_topVC { UIWindow *kW = nil; if (@available(iOS 13.0, *)) { for (UIWindowScene* windowScene in [UIApplication sharedApplicatio 阅读全文
posted @ 2020-11-19 10:26 coderiding 阅读(418) 评论(0) 推荐(0)
摘要: 模型-视图-控制器(MVC)模式将对象分为三种不同的类型。是的,你猜对了:这三种类型是:模型、视图和控制器! 用下图来解释这些类型之间的关系相当简单。 (Models)模型保存应用数据。它们通常是结构或简单的类。 (View)视图在屏幕上显示视觉元素和控件。它们通常是UIView的子类。 (Cont 阅读全文
posted @ 2020-11-18 10:04 coderiding 阅读(901) 评论(0) 推荐(0)
摘要: 继承自 UIView UIResponder NSObject 符合(遵守) CVarArg Equatable Hashable NSCoding NSTouchBarProvider UIAAccessibilityIdentification UILargeContentViewerItem 阅读全文
posted @ 2020-11-18 09:59 coderiding 阅读(208) 评论(0) 推荐(0)