I figured it out.Yes. That's how it's done. Thanks for reply! Ric.
On Mon, Oct 19, 2009 at 1:17 AM, Alexander Spohr <[email protected]> wrote: > Frederick, > just an idea - from UIView’s documentation: > > tag > The receiver’s tag, an integer that you can use to identify view objects in > your application. > @property(nonatomic) NSInteger tag > > Set the tag of each segmented view to the row before you hand it out to the > table view. > > atze > > > > Am 19.10.2009 um 02:37 schrieb Frederick C.Lee: > > The Environment: >> (1) iPhone SDK 3.2.1 >> >> The Setup: >> (1) UITableViewCell is defined within its own XIB... >> Interface Builder (XIB): >> File's Owner: <Table> View Controller. >> >> (2) UISegmentController's Action Method is defined within the <Table> >> View Controller; along side >> with: UITableViewDataSource & UITableViewDelegate methods. >> >> (3) Elements of the UITableViewCell XIB are linked with the File's Owner: >> <Table> View Controller. >> >> ------------------- >> The Scenario: >> I have a UITableView of Cells, each containing one UILabel and one >> UISegmentedControl. >> I need to capture BOTH the UISegmentedControl segment index (via ACTION >> method) >> AND the respective table-row number. >> >> ------------------- >> My Problem: >> a) I can capture the UISegmentControl's index via its respective Action >> Method >> within the <Table> View Controller; but I can not... >> b) capture the ROW number. >> >> However, I can capture ROW identifier IF I click (press) on the background >> UIView; but I'm >> hindered by the UISegmentedControl. >> >> ------------------- >> Question: >> What is the best way to do BOTH? >> >> (a) Forwarding the event up the responder chain from within the action >> method doesn't appear to work. >> Perhaps it's too late. >> >> (b) Making a subclass of the UITableViewCell and handling the event >> manually could work, but I'll >> loose the benefit of the UISegmentedControl's action method to >> determine the index. >> >> Any ideas? >> >> Ric. >> _______________________________________________ >> >> Cocoa-dev mailing list ([email protected]) >> >> 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: >> http://lists.apple.com/mailman/options/cocoa-dev/atze%40freeport.de >> >> This email sent to [email protected] >> > > _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
