Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/98.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios UITableViewCell仅使部分单元格可选择_Ios_Objective C_Uitableview_Custom Cell - Fatal编程技术网

Ios UITableViewCell仅使部分单元格可选择

Ios UITableViewCell仅使部分单元格可选择,ios,objective-c,uitableview,custom-cell,Ios,Objective C,Uitableview,Custom Cell,我有一个自定义的tableview单元格,我希望用户只能在tableview中点击/选择单元格的一部分 我想,如果我将my CustomCell设置为不可选择,然后在CustomCell中添加用户可以点击的UIButton,这将是可能的 但是还有其他的方法吗 是的,你的方法是正确的,没有标准的api来做。你也可以在不可选择的部分上放一个清晰的UIView。你想要什么样的可选择部分?

我有一个自定义的tableview单元格,我希望用户只能在tableview中点击/选择单元格的一部分

我想,如果我将my CustomCell设置为不可选择,然后在CustomCell中添加用户可以点击的UIButton,这将是可能的


但是还有其他的方法吗

是的,你的方法是正确的,没有标准的api来做。你也可以在不可选择的部分上放一个清晰的UIView。你想要什么样的可选择部分?