Welcome to iPadForums.net Guest - Click Here to Register

Making object with variable

This is a discussion on Making object with variable within the iPad Development forums, part of the iPad App Store category; Hi, I have 9 UIImageView objects in my app. Now I want to make a loop to change settings on every object. Is it possible ...

iPadForums.net is the original Apple iPad Forum! Registered Users do not see these ads. Please Register - It's Free!
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    iPad Noob!
    Member #
    24951
    Join Date
    Dec 2010
    Location
    Amsterdam (The Netherlands)
    Posts
    1

    Making object with variable

    Hi,

    I have 9 UIImageView objects in my app.
    Now I want to make a loop to change settings on every object.

    Is it possible to have a for-loop and use the variable to make the object?

    for(i=0;i<10;i++) {

    [["object"+i] setBackgroundColor:bg];

    }

    Something like that. Is this possible? And how can I do that?

    Hope someone knows the answer

  2. Ads



Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Hidden object games
    By Cosmoglow in forum iPad Games
    Replies: 24
    Last Post: 09-01-2012, 09:16 PM
  2. Hidden object games
    By godwisper in forum iPad Games
    Replies: 15
    Last Post: 02-18-2012, 09:54 AM
  3. Hidden object games
    By kate2kate in forum iPad Games
    Replies: 1
    Last Post: 05-13-2011, 06:16 AM
  4. object detection on an ipad
    By traveltikes in forum Off-Topic
    Replies: 0
    Last Post: 02-18-2011, 09:14 PM
  5. Object driven doc creation in iOS
    By SimesH in forum iPad Development
    Replies: 2
    Last Post: 09-20-2010, 04:20 PM