Swift class not conforming to Objective C Protocol

تعرفه تبلیغات در سایت

آرشیو مطالب

امکانات وب

Vote count: 0

I have this objective c protocol as mentioned below:

@protocol Class1

- (void)searchBy:(Enum1)searchType;


And i am trying to make a swift class conform to that protocol . The stub which Xcode generated for me is as follows:

func search(by searchType: Enum1) {

But Xcode gives me an error while building that the class still doesn’t conform to protocol. What am i missing here?

asked 40 secs ago
Karnika Advani

نویسنده : استخدام کار بازدید : 0 تاريخ : سه شنبه 29 اسفند 1396 ساعت: 8:52
برچسب‌ها :



نام کاربري :
رمز عبور :