A
A
Alex Palm2017-10-23 11:10:44
Objective-C
Alex Palm, 2017-10-23 11:10:44

How to click on a button programmatically in Xcode?

There is an Xcode project that uses a third party framework written in a mixture of Obj-C and C++.
Inside this framework a button is rendered
Here is the object information:
> iview:[22ButtonLayoutObjectView @ 0x7fa5d7358600 id: 163 nativeView: {0x7fa5d3ee2650 f: {{118, 56}, {60, 36}} layer: 0x604000430640} key: 70 rowOffset: 1]
Is it possible to simulate clicking on this button?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Bukhtin, 2017-11-02
@bubuh

If this button inherits `UIButton` (`UIControl`), then pressing can be called by the `sendAction` method.
https://developer.apple.com/documentation/uikit/ui...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question