47134

didSelectRowAtIndexPath not working on sdk 3.0

Question:

I was working on an app in SDK 2.x and everything was working fine, but now I have updated my SDK to 3.0 and found:

didSelectRowAtIndexPath

of tableview is not working.

Anyone know why this is happening?

Answer1:

The <a href="http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/TableView_iPhone/ManageSelections/ManageSelections.html#//apple_ref/doc/uid/TP40007451-CH9" rel="nofollow">Table View Programming Guide</a> says:

"You can control whether rows are selectable when the table view is in editing mode by setting the allowsSelectionDuringEditing property of UITableView. In addition, beginning with iPhone OS 3.0, you can control whether cells are selectable when editing mode is not in effect by setting the allowsSelection property."

So if things changed from 2.2.1 to 3.0 perhaps you have allowsSelection set to NO.

Recommend

  • How to tell under Linux which disk will be used by BIOS to boot?
  • InnoSetup, Convert tasks to Radiobuttons?
  • UITextView with hyperlink text in Swift
  • Issue with addHeaderView and missing list separator
  • Protecting critical code from being called again
  • Why does Apple use assign rather than weak to store a delegate?
  • UICollectionView in UITableview - Get tag of tapped UICollectionView
  • Graceful pod termination
  • SQL query to group by maximal sets of a column having inner consecutive distances below a threshold
  • can variables be set randomly when declaring them again?
  • iOS Cordova first plugin - plugin.xml to inject a feature
  • C# - Most efficient way to iterate through multiple arrays/list
  • Is it possible to open regedit and navigate to straight to a specific key using process.start?
  • Android application: how to use the camera and grab the image bytes?
  • How to revert to previous XCode version?
  • How to get Eclipse Oxygen to run on Java 9
  • If I include Java 8 in my Android app does that affect which devices it will work on?
  • Adding a button at the bottom of a table view
  • Nant, Vault & Windows Integrated Authentication
  • Why HTML5 Canvas with a larger size stretch a drawn line?
  • Bug in WPF DataGrid
  • Get object from AWS S3 as a stream
  • TFS: Get latest causes slow project reloading
  • Controls, properties, events and timers running in design time
  • vba code to select only visible cells in specific column except heading
  • jQuery tmpl and DataLink beta
  • Do I've to free mysql result after storing it?
  • How can I estimate amount of memory left with calling System.gc()?
  • Delete MySQLi record without showing the id in the URL
  • Confusion with PayPal's monthly billing cycle
  • How do I rollback to a specific git commit
  • Unanticipated behavior
  • Transpose CSV data with awk (pivot transformation)
  • Cannot Parse HTML Data Using Android / JSOUP
  • Comma separated Values
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • Trying to get generic when generic is not available
  • Getting Messege Twice Using IMvxMessenger
  • Sorting a 2D array using the second column C++
  • How to load view controller without button in storyboard?