Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/22.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 点击其他UIButton时更改视图(UIimage,UIButton)_Ios_Objective C - Fatal编程技术网

Ios 点击其他UIButton时更改视图(UIimage,UIButton)

Ios 点击其他UIButton时更改视图(UIimage,UIButton),ios,objective-c,Ios,Objective C,当我点击UIButton时,我需要更改视图的图像,我指的是高亮显示或选中的相同行为,但应用于另一个视图(UIButton图像) f、 e: 当我点击imgCheckFacebook时,这是正常的,但当我点击另一个按钮或视图时,我希望有这种行为。好的,现在我对您的问题有了更好的理解 也许你只需要在合适的时间发起活动 使用[yourFirstButton sendActionsForControlEvents:UIControlEventTouchUpInside]如何 如果UIControlEve

当我点击UIButton时,我需要更改视图的图像,我指的是高亮显示或选中的相同行为,但应用于另一个视图(UIButton图像)

f、 e:


当我点击imgCheckFacebook时,这是正常的,但当我点击另一个按钮或视图时,我希望有这种行为。

好的,现在我对您的问题有了更好的理解

也许你只需要在合适的时间发起活动

使用
[yourFirstButton sendActionsForControlEvents:UIControlEventTouchUpInside]如何


如果UIControlEventTouchUpInside不起作用,您可以尝试其他可能的事件类型(在中列出)。

您的问题有和在这里的许多其他问题中。这不是我的问题,它在按下“后”解决,我想在按下时(UIControlStateSelected)并在按钮处于UIControlStateNormal时进入正常状态。
 [self.imgCheckFacebook setBackgroundImage: 
                   [UIImage imageWithColor: [UIColor blue]] 
                                   forState: UIControlStateHighlighted];