Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-06-2010, 04:50 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 71
Default Global Variable Storing Issue

Hey everyone,

I'm having and issue trying to store data into an NSInteger from one class to the next.

In a seperate header file I have:
Code:
extern NSUInteger arrayPosition;
and in its .m I have:
Code:
NSUInteger arrayPosition;
Now the problem is when I'm trying to get the integer value of the row selected:

Code:
arrayPosition = [indexPath row];
If I remove the [indexPath row] and put in an integer, it recognizes the integer in another class. I'm not too sure if I should be using something else besides [indexPath row] because that's what I've seen in most examples. Any help would be greatly appreciated.
Coolio098 is offline   Reply With Quote
Old 09-06-2010, 09:00 PM   #2 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 71
Default

Anyone? I just need to know how to store the numerical value of which row is selected. Whether its row 1, 2, 3, etc. Any help would be great.
Coolio098 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 327
22 members and 305 guests
@sandris, ADY, BrianSlick, dacapo, Dani77, djohnson, dre, HDshot, HemiMG, JasonR, MarkC, mer10, nibeck, prchn4christ, ryandb2, spiderguy84, themathminister, timle8n1, tomtom100, vogueestylee, vvenkatachallam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,883
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, vvenkatachallam
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:08 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0