Cocoa touch 产生断点的推序列
hoepfully是一个简单的解决方法。:) 我正在使用集合视图,并将其推送到详细视图控制器。在模拟器中单击单元格时,应用程序崩溃,并在代码的这一部分显示一个断点:Cocoa touch 产生断点的推序列,cocoa-touch,view,collections,breakpoints,Cocoa Touch,View,Collections,Breakpoints,hoepfully是一个简单的解决方法。:) 我正在使用集合视图,并将其推送到详细视图控制器。在模拟器中单击单元格时,应用程序崩溃,并在代码的这一部分显示一个断点: #import "DetailViewController.h" @interface DetailViewController () @property (nonatomic, weak) IBOutlet UIImageView *imageView; @end @implementation DetailViewContr
#import "DetailViewController.h"
@interface DetailViewController ()
@property (nonatomic, weak) IBOutlet UIImageView *imageView;
@end
@implementation DetailViewController
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated]; //<--------- break point
self.imageView.image = self.image;
}
@end
#导入“DetailViewController.h”
@接口详细信息ViewController()
@属性(非原子,弱)IBUIImageView*imageView;
@结束
@实现细节视图控制器
-(无效)视图将显示:(BOOL)动画
{
[超级视图将显示:动画];//给出了任何错误信息吗?没有。显示的是:(lldb)您可以同时包含您的DetailViewController.h文件吗?请编辑到上面的原始帖子中。您可以尝试在应用注释掉的图像的行中运行它。或者合成您的图像属性。
#import <UIKit/UIKit.h>
@interface DetailViewController : UIViewController
@property (nonatomic, strong) UIImage *image;
@end