+public:
+ wxCheckBoxIPhoneImpl(wxWindowMac *wxpeer, UISwitch *v)
+ : wxWidgetIPhoneImpl(wxpeer, v)
+ {
+ m_control = v;
+ }
+
+ wxInt32 GetValue() const
+ {
+ return [m_control isOn] ? 1 : 0;
+ }
+
+ void SetValue( wxInt32 v )
+ {
+ [m_control setOn:v != 0 animated:NO];
+ }
+private:
+ UISwitch* m_control;
+};