@selector不起作用,跳出异常
来源:互联网 发布:崩坏3矩阵buff大全 编辑:程序博客网 时间:2024/06/05 12:05
我控制器中有这样一段代码
- (void)viewDidLoad
{
UIBarButtonItem *addButton = [[UIBarButtonItem alloc]initWithTitle:@"增加" style:UIBarButtonItemStyleBordered target:self action:@selector(addANote:)];
self.navigationItem.rightBarButtonItem = addButton;
[addButton release];
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
但运行的时候,一点击增加按钮就会出异常,断点断在movl 8(%edx), %edi,在代码中是有这个addANote的方法的,才学ios没多久,实在不知怎么回事,帮忙看看,谢谢
- (void)viewDidLoad
{
UIBarButtonItem *addButton = [[UIBarButtonItem alloc]initWithTitle:@"增加" style:UIBarButtonItemStyleBordered target:self action:@selector(addANote:)];
self.navigationItem.rightBarButtonItem = addButton;
[addButton release];
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
但运行的时候,一点击增加按钮就会出异常,断点断在movl 8(%edx), %edi,在代码中是有这个addANote的方法的,才学ios没多久,实在不知怎么回事,帮忙看看,谢谢
0 0
- @selector不起作用,跳出异常
- TextView selector不起作用
- Android开发笔记---- selector不起作用
- ImageView设置selector不起作用原因
- android LinearLayout设置selector不起作用解决
- linearLayout下设置selector不起作用的解决方法
- android LinearLayout设置selector不起作用解决
- 关于selector对TextView不起作用的问题
- android LinearLayout设置selector不起作用问题解决方案
- TextView动态设置字体颜色selector不起作用?
- Android中的选择器selector的写法解析及不起作用原因
- 给TextView,RelativeLayout 设置selector不起作用的原因总结
- JSONObject跳出java.lang.IllegalArgumentException异常
- web.xml配置错误异常页面不起作用
- SpringBoot 自定义异常@ContollerAdvice ExceptionHandler不起作用
- f1513.cpp 非错误异常,跳出深循环
- java 语句异常后跳出的范围是fun()
- 【Java笔记】try中捕获到异常后跳出try
- 怎么直接调用系统设置好的闹钟(自己解决了,来几个收分的)
- C程序设计语言- 类型、运算符与表达式-2.1----变量名、数据类型及长度、常量、声明、算数运算符、关系运算符与逻辑预算符
- 为什么我的Android 模拟器 老是无法工作在加速模式下?
- OSI参考模型——网络层:路由选择算法和协议
- 技术干货-Linux系统如果“rm -rf”了有后悔药吗?
- @selector不起作用,跳出异常
- magento新建店铺视图
- 欢迎使用CSDN-markdown编辑器
- 查找成绩并折算后输出
- linux tmux 解决复制到系统剪切板
- NPM 使用介绍
- Java并发之阻塞队列(二)
- json数据和xml文件的相互转换
- Struts2 配置 & 执行过程