【发布时间】:2021-06-30 01:48:09
【问题描述】:
我有 2 个类,第一个在 Objective-c 中,第二个在 swift
在objective-c类中我想从swift调用一些代码,但我得到了这个错误
Property 'move' not found on object of type 'theMove *'
我很快就有了这段代码
@objc enum Move : NSInteger
{
case one, two
}
@objc public class theMove :NSObject
{
var move : Move
@objc init(move : Move)
{
self.move = move
}
}
在目标中-c
当我调用 fristTurn.move 时出现错误
@property (nonatomic) theMove * fristTurn;
fristTurn.move
你能帮我解决这个错误吗
【问题讨论】:
标签: swift objective-c iso