Question about buttons and SQLite

Discussion in 'iOS Programming' started by swastikka, May 24, 2011.

  1. swastikka macrumors newbie

    May 22, 2011
    Hi all,
    Is it possible to detect the color of the button in code?
    In my app, I change the button's color to green. If user clicks, he gets points. But randomly, color changes to red. When red is clicked, he loses the game.
    How can I detect if the color is red or green?

    Also, is it possible to execute SQL queries (SELECT, INSERT INTO, etc.) in code by using SQLite?


Share This Page