カスタムデリゲートとデータソースがあります。しかし、初期化しようとすると、いくつかの問題が発生します。私の.hファイルでこのようになっている場合。
@property (nonatomic, assign) id<UITableViewDelegate> delegate;
@property (nonatomic, assign) id<KalDataSource> dataSource;
その結果、.mファイルの合成で次のエラーが発生します。
Existing ivar 'dataSource' for property 'dataSource' with assign attribute must be __unsafe_unretained.
いくつかのグーグル検索の魔法の後、私はこのように変数を評価する必要があることに気づきました。
@property (nonatomic, strong) id<UITableViewDelegate> delegate;
@property (nonatomic, strong) id<KalDataSource> dataSource;
しかし、その後、このエラーが発生します。
linker command failed with exit code 1 (use -v to see invocation)
誰かがこれを手伝ってくれますか?
敬具!