Can I #define a variable?

Discussion in 'iOS Development' started by eldavo, Sep 5, 2010.

  1. eldavo

    eldavo New Member

    Joined:
    Mar 21, 2009
    Messages:
    278
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    If I try to do #define myvariable
    it says that myvariable is undefined when I try to use it in code

    Please Register or Log in to view images



    Can I stop this or do I need to do something else?
  2. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    Preprocessor search and replace will not help you. Declare the variable...

Share This Page