• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Settings" button in UITableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Settings" button in UITableView


  • Subject: Re: "Settings" button in UITableView
  • From: Matt Neuburg <email@hidden>
  • Date: Fri, 24 Sep 2010 08:15:43 -0700
  • Thread-topic: "Settings" button in UITableView

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.
m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings



_______________________________________________

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

  • Follow-Ups:
    • Re: "Settings" button in UITableView
      • From: Remco Poelstra <email@hidden>
  • Prev by Date: Re: Question in regards to UITableView
  • Next by Date: Re: "Settings" button in UITableView
  • Previous by thread: "Settings" button in UITableView
  • Next by thread: Re: "Settings" button in UITableView
  • Index(es):
    • Date
    • Thread