我想在Xcode 9中更改故事板中按钮的动作事件。在Xcode 8中,当控制单击并将按钮拖动到代码时,有一种方法可以设置动作事件。在Xcode 9中,缺少此选择。这个设置被移除了还是我可以在其他地方找到它?
提前致谢。
在Xcode 9中:
在Xcode 8中:
答案 0 :(得分:0)
require File.expand_path '../../spec_helper.rb', __FILE__
describe "My Application Controller" do
it "should validate the current page path" do
get "/home"
active_page?(last_request, "/home").should eq true
end
end
不会以var element = document.getElementById("id");
element.addEventListener("click", function(){
});
的方式区分事件。 Xcode 8的示例图片显示了连接NSButton
后出现的弹出窗口。
如果要为多个事件调用IBAction,可以使用sendAction(on:)
。