gpt4 book ai didi

iphone - 为什么 IB 看不到我的 IBAction?

转载 作者:行者123 更新时间:2023-12-03 19:32:29 25 4
gpt4 key购买 nike

我已经盯着这个看了太久了。

这里没有什么奇怪的事情发生,我已经这样做了几十次,但 Interface Builder 坚决拒绝为我提供 -(IBAction)slideDirections 的操作目标。我现在愿意公开发帖,但又觉得自己很愚蠢。所以让我们撕裂吧。

这是我的 .h:

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>

@interface PulseDetailController : UIViewController {
NSDictionary *pulse;
IBOutlet MKMapView *map;
IBOutlet UIWebView *directions;
IBOutlet UIView *directionsSlider;
BOOL directionsExtended;
IBOutlet UILabel *vendor;
IBOutlet UILabel *offer;
IBOutlet UILabel *offerText;
IBOutlet UILabel *hours;
IBOutlet UILabel *minutes;
IBOutlet UILabel *seconds;
IBOutlet UILabel *distance
}
@property (nonatomic, retain) NSDictionary *pulse;
@property (nonatomic, retain) MKMapView *map;
@property (nonatomic, retain) UIWebView *directions;
@property (nonatomic, retain) UIView *directionsSlider;
@property (nonatomic) BOOL directionsExtended;
@property (nonatomic, retain) UILabel *vendor;
@property (nonatomic, retain) UILabel *offer;
@property (nonatomic, retain) UILabel *offerText;
@property (nonatomic, retain) UILabel *hours;
@property (nonatomic, retain) UILabel *minutes;
@property (nonatomic, retain) UILabel *seconds;
@property (nonatomic, retain) UILabel *distance;

-(IBAction)slideDirections;

@end

最佳答案

IBAction 不应该有一个发送者参数吗?喜欢:

-(IBAction)slideDirections:(id)sender;

关于iphone - 为什么 IB 看不到我的 IBAction?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3008287/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com