如何从此标记中获取 override func table(table: WKInterfaceTable, didSelectRowAtIndex rowIndex: Int) {
let string = data[rowIndex]
self.delegate?.didSeletStyle(style, string: string, index: rowIndex)
popController()
}
private func reloadTable() {
for i in 0 ..< table.numberOfRows {
let row = table.rowControllerAtIndex(i) as! tableRow
row.label.setText(data[i])
}
}
private func getData(style: Style) {
if style == .Friend {
data = ["a","b","c","d"]
}
table.setNumberOfRows(data.count, withRowType: "tableRow")
reloadTable()
}
文字?
Questions
以https://stackoverflow.com/源代码为例。
答案 0 :(得分:0)
只需选择您想要的元素,然后在其上调用amqp_channel:call(Channel, #'queue.declare'{
queue = QueueName,
arguments = [{<<"x-dead-letter-exchange">>, <<"">>}, {<<"x-dead-letter-routing-key">>, <<"task_pool1">>}, {<<"x-message-ttl">>, UnhideInMinute*60000}],
durable = true}
),
io:format("DECLARED CHANNEL.~n"),
amqp_channel:cast(Channel,
#'basic.publish'{
exchange = <<"">>,
routing_key = QueueName
},
#amqp_msg{props = #'P_basic'{delivery_mode = 2},
payload = JsonMsg}
)
方法即可获得它生成的文字。
换句话说,使用像
这样的东西text()
如果您在为select部分创建cssQuerry时遇到问题,请查看http://jsoup.org/cookbook/extracting-data/selector-syntax