当我尝试使用performSelectorOnMainThread
此方法更改按钮的隐藏值时:
[pictureButton performSelectorOnMainThread:@selector(setHidden:) withObject:NO waitUntilDone:YES];
但是这个:
[pictureButton performSelectorOnMainThread:@selector(setHidden:) withObject:YES waitUntilDone:YES];
给出这个错误:
Cannot initialize a parameter of type 'id' with an rvalue of type 'signed char'
会发生什么样的内部转换来创建此错误?我该如何解决这个问题?