0
를 사용하여 scxml 파일을 구문 분석하는 방법 나는NSXMLParser
<?xml version = "1.0"?>
<scxml version="1.0" name="statemachine" initial="initialState" xmlns="http://www.w3.org/2005/07/scxml" binding="early" exmode="lax">
<state id="initialState">
<transition target="state1" cond="TRUEPREDICATE" />
</state>
<state id="state1">
<transition target="state2" cond="SELF.currentStateName == 'state1'" />
</state>
<state id="state2">
<transition target="state1" cond="SELF.currentStateName == 'state2' && SELF.count < 5" />
<transition target="finalState" cond="SELF.currentStateName == 'state2' && SELF.count >= 5" />
</state>
<state id="finalState"/>
</scxml>
내가 NSXMLParser를 사용하여이 파일을 구문 분석 할 scxml 파일 다음있다. 내 생각에 버튼을 클릭하면 상태와 대상을 확인해야합니다.
현재 상태 값을 표시하고 싶습니다.
어떻게하면됩니까?
답장을 보내 주셔서 감사합니다. – Ben10