一直觉得自己写的不是技术,而是情怀,一个个的教程是自己这一路走来的痕迹。靠专业技能的成功是最具可复制性的,希望我的这条路能让你们少走弯路,希望我能帮你们抹去知识的蒙尘,希望我能帮你们理清知识的脉络,希望未来技术之巅上有你们也有我。
OC 项目底层框架(万能)
GetVC(获取控制器)下载链接
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/6adf606ad5b3b8f3e69b38ae2b809b96.png)
方法
+(UIWindow*)getCurrentWindow;
+ (UIViewController *)getRootViewController;
+ (UIViewController *)getCurrentViewController;
+(FHXTabBarController *)tabbarController;
+(FHXNavigationController *)currentTabbarSelectedNavigationController;
+(UIViewController *)getCurrentViewControllerFrist;
+(UIViewController*)getCurrentViewControllerSecond;
+(UIViewController*)getViewcontrollerView:(UIView*)view;
+(void)getMysubViewsWithCurrentViews:(UIView *)currentView byViewName:(NSString *)viewName;
使用
[GetVC getCurrentWindow];
NSLog(@"获取当前控制器: %@",[GetVC getCurrentViewController]);
NSLog(@"获取根控制器: %@",[GetVC getRootViewController]);
[GetVC tabbarController];
[GetVC currentTabbarSelectedNavigationController];
[GetVC getCurrentViewControllerFrist];
[GetVC getCurrentViewControllerSecond];
[GetVC getViewcontrollerView:self.bgView];
[GetVC getMysubViewsWithCurrentViews:self.bgView byViewName:@"currentView"];