मैं निम्नलिखित सुझाव दिया दिनचर्या का इस्तेमाल किया है एक तालिका दृश्य कक्ष में विस्तार प्रकटीकरण बटन छवि बदलने के लिए (tableView cellForRowAtIndexPath में)एक विस्तार प्रकटीकरण बटन के लिए छवि में परिवर्तन करना (Xcode 4.2)
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
UIButton *myAccessoryButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 24, 24)];
[myAccessoryButton setBackgroundColor:[UIColor clearColor]];
[myAccessoryButton setImage:[UIImage imageNamed:@"ball"] forState:UIControlStateNormal];
[cell setAccessoryView:myAccessoryButton];
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
}
हालांकि, घटना tableView accessoryButtonTappedForRowWithIndexPath
अब बटन पर क्लिक करने के लिए नहीं कहा जाता है।
क्या किसी के पास कोई विचार है?
+1 लेकिन एसओ – Rhubarb