“表达式过于复杂”:如何使用Swift编译器?

时间:2017-09-07 11:24:32

标签: swift

Swift编译器在这一行上给出了一个错误,并说“表达式太复杂而无法在合理的时间内解决”

<style name="MyStyle">
<item name="textAppearanceSmall">@style/textStyle</item>
</style>

我需要将其分解,但不知道如何调整它以满足编译器。

1 个答案:

答案 0 :(得分:2)

使用字符串插值。

pushMessage = "\(user.name) has briefed: \"\(note)\" and will attend conference\(conference) if approved."
相关问题