【iOS代码】集中处理Controller跳转问题
来源:互联网 发布:销售网络心得怎么写 编辑:程序博客网 时间:2024/05/08 09:09
#pragma mark
#pragma mark - Init & Add
- (NSMutableArray *)elementList
{
if (!_elementList)
{
_elementList = [[NSMutableArrayalloc] init];
}
return_elementList;
}
#pragma mark
#pragma mark - Action
- (void)controllerTransferFrom:(UIViewController *)beginController to:(NSString *)endControllerString withType:(NSInteger)type
{
Class controllClass =NSClassFromString(endControllerString);
if (controllClass)
{
UIViewController *endController = [[controllClassalloc] init];
switch (type)
{
casePUSHWITHANIMATION:
{
[(UINavigationController *)beginControllerpushViewController:endController animated:YES];
return;
}
break;
casePUSHWITHOUTANIMATION:
{
[(UINavigationController *)beginControllerpushViewController:endController animated:NO];
return;
}
break;
casePRESENTWITHANIMATION:
{
[beginControllerpresentViewController:endController animated:YES completion:nil];
return;
}
break;
casePRESENTWITHOUTANIMATION:
{
[beginControllerpresentViewController:endController animated:NO completion:nil];
return;
}
break;
default:
break;
}
TT_RELEASE_SAFELY(endController);
}
}
- 【iOS代码】集中处理Controller跳转问题
- ios 手写代码的controller与storyboard里的controller跳转
- 集中处理之逻辑问题
- 关于frameset集中链接的跳转问题
- Ajax请求,Controller处理,并跳转
- SpringMvc Controller 带参数的重定向 不能跳转问题处理方案
- 第5篇:ui-router路由带参数跳转后controller执行两次的问题处理
- iOS 纯代码跳转
- 重装系统常遇到的问题集中处理
- controller跳转controller
- ios 页面跳转问题
- iOS 跳转问题
- iOS 跳转浏览器问题
- iOS 跳转浏览器问题
- iOS之旅--处理跳转
- iOS应用跳转问题之:应用跳转
- Controller与Controller之间跳转
- controller跳转另外一个controller
- jquery 文章自定义分段显示
- 微信公众帐号开发教程第10篇-解析接口中的消息创建时间CreateTime
- C\C++代码优化的27个建议
- Qt数据库总结
- 中俄否决安理会"将叙利亚问题提交国际法院"草案
- 【iOS代码】集中处理Controller跳转问题
- 微信公众帐号开发教程第11篇-符号表情的发送(上)
- iOS7—自定义导航转场动画以及更多
- 中国历史上千古不变的九大定律
- 多台服务器之间通信,使用ssh-kengen生成密钥,避免ssh scp等命令输入验证密码
- UITableView和UIScrollView共存,滚动条滚动问题
- 微信公众帐号开发教程第12篇-符号表情的发送(下)
- DIMMs must be installed in pairs of matched memory size, speed, and technolo
- UML类图关系(泛化 、继承、实现、依赖、关联、聚合、组合)