Re: "Settings" button in UITableView
Re: "Settings" button in UITableView
- Subject: Re: "Settings" button in UITableView
- From: Remco Poelstra <email@hidden>
- Date: Fri, 24 Sep 2010 18:36:25 +0200
Op 24 sep. 2010 om 17:15 heeft Matt Neuburg <email@hidden> het volgende geschreven:
> On Fri, 24 Sep 2010 10:33:28 +0200, Remco Poelstra <email@hidden>
> said:
>> Hi,
>>
>> I've a UITableView with UITableViewCell of style UITableViewStyleSubtitle.
>> The table shows devices that the app has found on the Wifi network. When
>> I click on a row I show a detailview of the device. This all works fine.
>> The device has some internal configuration settings that the user needs
>> to be able to change (like whether the device uses DHCP for its IP
>> address). In order to let the user change these settings I've added a
>> "settings" button to my UIToolbar. When the user taps the button I want
>> to show a button for each row which allows the user to enter the
>> configuration view. Much like the "Delete" button in the e-mail app.
>> I've found out that I can change the text of the default "Delete"
>> button, but how can I show that button without putting the UITableView
>> in edit mode and requiring the user to tap the delete circle (on the
>> left) first?
>> Or can I add such a button on the fly to all rows?
>
> Sure, just use a custom table view cell and you can make each cell show
> anything you want. What I would do is always have the button be there, and
> just show or hide it when I provide the cell, according to some state
> variable. Call reload data to ask Cocoa to ask you to provide cells again.
>
Hi,
Is there some precaution I've to take to make sure the buttons slide in nicely like they do in the mail app? I've currently no idea about coding animations and such.
Regards,
Remco Poelstra
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden