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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 08-19-2011, 05:38 AM   #1 (permalink)
iAS
Registered Member
 
Join Date: Jul 2011
Posts: 15
iAS is on a distinguished road
Post Edit the Cell of UITableView

I have and UITableView populated using NSMutableArray.

Each cell also has the cell delete option.

Now what is to edit the contents of cell if user clicks on some custom button in the cell.

could someone suggest on the issue?

Thanks for any reply.
iAS is offline   Reply With Quote
Old 08-19-2011, 07:07 AM   #2 (permalink)
Registered Member
 
Join Date: Aug 2010
Location: Edinburgh
Posts: 209
Justinmichael is on a distinguished road
Default

Quote:
Originally Posted by iAS View Post
I have and UITableView populated using NSMutableArray.

Each cell also has the cell delete option.

Now what is to edit the contents of cell if user clicks on some custom button in the cell.

could someone suggest on the issue?

Thanks for any reply.
You should subclass UITableViewCell and put your button code in there. To edit the contents, just edit the tables dataSource delegate (probably the NSMutableArray you mentioned) and call reloadData.
__________________
Justinmichael is offline   Reply With Quote
Old 08-22-2011, 02:21 AM   #3 (permalink)
iAS
Registered Member
 
Join Date: Jul 2011
Posts: 15
iAS is on a distinguished road
Post Create the UITableview Delegate

Since my problem is associated with Editing of the UITableViewCell, i figured out a approach to solve the issue.

So as per the approach is it possible to create the Custom UITableView Delegate Methods, wherein i can write the code to edit the individual cell.

Then, this custom delegate can be called from following delegate method of UITableViewCell.


- (UITableViewCellEditingStyle)tableViewUITableVie w *)tableView editingStyleForRowAtIndexPathNSIndexPath *)indexPath {}

Any thought on the issue would be greatly appreciated.
iAS is offline   Reply With Quote
Reply

Bookmarks

Tags
cell, edit button, 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: 393
13 members and 380 guests
7twenty7, chiataytuday, cristofercolmbos, dedeys78, fiftysixty, gmarro, iOS.Lover, jonathandeknudt, raymng, stanny, tymex, UMAD, xerohuang
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,669
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, dedeys78
Powered by vBadvanced CMPS v3.1.0

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