Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 503

Aspiring developer
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10/24/21 02:28 AM (2 years ago)

NAD advanced qiuz errors

I published this quiz few years ago, now Apple wants me to publish it again. I use XCode 13.0 and get error: ARC Semantic Issue: Multiple methods named 'layer' found with mismatched result, parameter type or attributes, NAD_advanced_quiz.m Any help, please?
Code is Art
Posts: 501
Reg: Dec 15, 2010
In your local b...
10/25/21 11:26 PM (2 years ago)
Hi Miku! For this error, simply tweak the syntax a little bit for each snippet referencing the layer attribute. Change [[[_answerLabelArray objectAtIndex:i] layer] setCornerRadius:10]; to [[(UIView*)[_answerLabelArray objectAtIndex:i] layer] setCornerRadius:10]; (Notice the insertion of the "(UIView*)" in this instance.) And that should fix the issues allowing you to compile the plugin. :)

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.