Subscribe ( )

iPhone Programming Tutorials

 

Forum

You must be logged in to post Login Register

Search 

Looking for help with passing variables

User Post

2:48 pm
October 21, 2008


cmcintosh2

iCoder

posts 9

1

I have a sqlite db program for rules for card games.  I am using the tableview to display the information.  I have the views transittioning okay, but I am having problems trying to pass the correct category to the second view so that it only displays the games for that category.


How would i go about doing something like that and is there any place with some good docs to read up on it that also relate to the iphone.  Thanks.

3:31 am
October 23, 2008


iCoder

Derbyshire, UK

posts 8

2

…but I am having problems trying to pass the correct category to the second view so that it only displays the games for that category..


I think I'm understanding what you want. So here goes: on the secondView create an instance variable in there like NSString *Catagory;

The just before you navigate to the secondView do this:

mySecondViewController.Catagory=@”My Catagory”;

Then you can use self.Catagory in the secondVIew in a SQL command…..I'm a noob too, so may be totally wrong here :-)



About the iCodeBlog forum

Currently Online:

5 Guests

Maximum Online: 19

Forums:

Groups: 2

Forums: 6

Topics: 156

Posts: 503

Members:

There are 268 members

There are 1 guests


Brandon has made 81 posts

Top Posters:

bobcubsfan - 48

crazyiez - 30

Uhu - 17

VertigoSol - 17

Nick - 15

Administrator: Brandon | Moderators: VertigoSol


© - Version 3.1.4 (Build 357)  

Share and Enjoy: