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 > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 12-01-2009, 11:18 PM   #1 (permalink)
Nithin
 
Join Date: Nov 2009
Location: Kerala,India
Age: 24
Posts: 26
Send a message via Yahoo to nithiniz
Default row selection, uitableview cell

I want to assign the value of indexpath.row of the row which is currently selected, to a variable, How to do that???
nithiniz is offline   Reply With Quote
Old 12-02-2009, 12:22 AM   #2 (permalink)
iPhone Developer
 
d_amal's Avatar
 
Join Date: Nov 2009
Location: chennai, india.
Age: 25
Posts: 60
Send a message via Yahoo to d_amal Send a message via Skype™ to d_amal
Default

Add this code in didselectrowatindexpath
Code:
NSString *selectedrow= [NSString stringWithFormat:"%d",indexPath.row];
d_amal is offline   Reply With Quote
Old 12-02-2009, 01:25 AM   #3 (permalink)
Nithin
 
Join Date: Nov 2009
Location: Kerala,India
Age: 24
Posts: 26
Send a message via Yahoo to nithiniz
Default

Thanks for the reply.,
but this is not what i'm looking for. I want to add data to the row that is currently selected. is there any way to access it from cellForRowAtIndexPath: method???
nithiniz is offline   Reply With Quote
Old 12-02-2009, 01:31 AM   #4 (permalink)
iPhone Developer
 
d_amal's Avatar
 
Join Date: Nov 2009
Location: chennai, india.
Age: 25
Posts: 60
Send a message via Yahoo to d_amal Send a message via Skype™ to d_amal
Default

May be just add data to the required row and use [tablename reloaddata]
d_amal is offline   Reply With Quote
Old 12-02-2009, 01:37 AM   #5 (permalink)
Nithin
 
Join Date: Nov 2009
Location: Kerala,India
Age: 24
Posts: 26
Send a message via Yahoo to nithiniz
Default table view cell

I'm now looking it in a different way..I've included an inageview and a button in the custom cell. I'm calling uiimagepickercontroller as an action to the touch up inside of the button. I want to select the picture and show in that cell. But i'm being shown a warning and the application crashes...
'customCell'may not respond to presentmodalviewcontroller animated...
what might be the problem??
nithiniz is offline   Reply With Quote
Old 12-02-2009, 02:14 AM   #6 (permalink)
iPhone Developer
 
d_amal's Avatar
 
Join Date: Nov 2009
Location: chennai, india.
Age: 25
Posts: 60
Send a message via Yahoo to d_amal Send a message via Skype™ to d_amal
Default

I don't know exactly,but instead of cutomcell use self ie
Code:
[self presentModalViewController:picker animated:YES]
d_amal is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone sdk, uitableviewcell

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: 263
16 members and 247 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, jakerocheleau, JasonR, prchn4christ, Rudy, Speed
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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