|Nov 23, 2012, 07:24 PM||#1|
Find location of table view cell that calls view controller
How do I do that?
The funny thing about this signature is that by the time you get to the end of it, you will have spent between five and ten seconds doing so.
|Nov 24, 2012, 08:52 AM||#3|
(My answer is about as clear as your question.)
There are probably a dozen different ways to do what you describe. Which one makes sense depends on how your program is structured, if you're using storyboards or XIB files, how you represent your data model, etc, etc.
Without a more complete picture, there's no way to provide meaningful help.
Duncan Champney, WareTo.
Check out our latest iOS app, Face Dancer, available for free on the App Store.
|Nov 24, 2012, 05:31 PM||#4|
What method is the cell calling on the view controller in controller in question?
Is the view controller a standard view controller, like a tableview controller?
Is the Cell a standard tableviewCell or a custom subclass?
A quicklook in the documentation for UITableviewController tells me there is no reason a standard cell would call back to the view controller. Also looking in the documents UITableview has the a number of methods for finding indexPath of a cell or alternatively a point in the tableview.
The bigger question could why?
What are you trying to do if you are trying to get the cells to respond to a gesture then there are ways to attach a gesture recogniser to the tableview make make it seem like its acting on the cells from the users perspective. A lot of the reasons for a cell to send a message back have easier more effective and more reliable ways of going about them.
There is no such thing as "Collective Wisdom"
[ iPhone 5s, iPad Mini, 13" MacBookPro 2.7Ghz, 27"Al iMac i7, Black MacBook 13"]
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|UITableView in table view controller is cut off at the top||moonman239||iPhone/iPad Programming||3||Nov 21, 2013 12:10 PM|
|Table View Cell Separator Lines Not Showing||RagingGoat||iPhone/iPad Programming||8||May 20, 2013 05:43 PM|
|Resolved: Table View Cell Text Help||iphonedude2008||iPhone/iPad Programming||3||Dec 5, 2012 05:48 PM|
|View-based table view losing selection highlight||Starfox||Mac Programming||1||Nov 28, 2012 01:02 AM|
|Pushing to a Detail View from a Table View Cell using Xcode Storyboard||xcodeApp10||iPhone/iPad Programming||2||Sep 17, 2012 03:45 PM|
All times are GMT -5. The time now is 05:38 PM.