当前位置:网站首页>Mmdrawercontroller gets the current VC for push and pop
Mmdrawercontroller gets the current VC for push and pop
2022-07-24 13:52:00 【Muzi string music】
When using MMDrawerController As the root attempt controller is stay Model perhaps View Get the current VC And carry on Push perhaps Pop
Just post the code
+ (UIViewController *)getCurrentVC{
// Define a variable to store the currently displayed viewcontroller
UIViewController *result = nil;
// Get the main window of the current application
UIWindow * window = [[UIApplication sharedApplication] keyWindow];
// windowLevel Is in Z Axis Window position in direction , The default value is UIWindowLevelNormal
if (window.windowLevel != UIWindowLevelNormal)
{
// Get all the windows of the application
NSArray *windows = [[UIApplication sharedApplication] windows];
for(UIWindow * tmpWin in windows)
{
// Find the default window of the program ( Window being displayed )
if (tmpWin.windowLevel == UIWindowLevelNormal)
{
// Assign the key window as the default window
window = tmpWin;
边栏推荐
- Build ZABBIX monitoring service in LNMP architecture
- NOIP2021 T2 数列
- R语言使用epiDisplay包的statStack函数基于因子变量通过分层的方式查看连续变量的统计量(均值、中位数等)以及对应的假设检验、对连续数据进行对数化之后符合参数检验条件自动执行参数检验
- SQL server startup and shutdown job script
- Detailed explanation of MSTP protocol for layer 3 switch configuration [Huawei ENSP experiment]
- 网络安全——文件上传渗透测试
- CSDN垃圾的没有底线!
- Flink容错机制(五)
- Sringboot-plugin-framework 实现可插拔插件服务
- 关于不定方程解的个数的问题
猜你喜欢

第六章 总线

Network security - file upload blacklist bypass

网络安全——使用Evil Maid物理访问安全漏洞进行渗透
![[untitled]](/img/67/793d1fd7c295f0af9f683ffa389757.png)
[untitled]

Sringboot plugin framework implements pluggable plug-in services

2022.7.22 simulation match

Soft link, hard link

Network security - file upload competitive conditions bypass

position: -webkit-sticky; /* for Safari */ position: sticky;

OWASP zap security testing tool tutorial (Advanced)
随机推荐
Flink高级特性和新特性(八)v2
R language uses the tablestack function of epidisplay package to make statistical summary tables (descriptive statistics based on the grouping of target variables, hypothesis testing, etc.), set the b
Sringboot plugin framework implements pluggable plug-in services
申请了SSL数字证书如何进行域名验证?
Add an element to the object array with unshift
CSDN垃圾的没有底线!
Chapter VI bus
网络安全——Web信息收集
Data type binary string type
Soft link, hard link
CSDN garbage has no bottom line!
网络安全——使用Evil Maid物理访问安全漏洞进行渗透
Hcip day 13
数据湖系列文章
Csp2021 T3 palindrome
RHCE first operation
使用Activiti创建数据库表报错,
R语言检验样本比例:使用prop.test函数执行单样本比例检验计算总体中成功样本比例p值的置信区间
Browser failed to get cookies, browser solution
【无标题】