iOS Question problem on debug

Discussion in 'iOS Questions' started by Ramezanpour, Mar 23, 2015.

  1. Ramezanpour

    Ramezanpour Active Member Licensed User


    when i click on debug and it sending project to compile
    I replace my username(hosted builder) to : XXXXXXXXXXXXXXXX
    It show error :

    (This error is long and this site do not allow that here)
  2. Erel

    Erel Administrator Staff Member Licensed User

    You will need to change the name of the ImageView variable (copy) to a different name. It causes a conflict in the generated code.
    Ramezanpour likes this.
  3. Ramezanpour

    Ramezanpour Active Member Licensed User

    I change that imageview name but now :
  4. Brian Robinson

    Brian Robinson Active Member Licensed User

    You are getting the same error:
    Users/administrator/Documents/UploadedProjects/XXXXXXXXXXXXXXXX/B4iProject/b4i_pageschapter.h:32:43: error: property follows Cocoa naming convention for returning 'owned' objects
    @property (nonatomic)B4IImageViewWrapper* _copy1;

    I would suggest naming the control imgCopy or something like that.

    As with most controls in your app it is better to name them with a prefix (img,txt,sv,btn...) - less chance you will run into similar problems.

    A quick explanation here as to why copy can't be used:

    Basically "copy" is a reserved word used by the compiler for generating it's own code. Even though you have named it "copy1" the second time, it still forms the start of the word and the compiler might also use copy1...copy2... etc.

    Ramezanpour likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice