vb.net - VB code to Objective C -
im new coding in xcode , using objective c. have old code project written in vb wound convert objective c.
here code:
private sub vitalitybutton4_click(sender object, e eventargs) handles vitalitybutton4.click if txtweburl.text <> nothing try dim wc new webclient wc.proxy = nothing dim st string = wc.downloadstring("http://isup.me/" & txtweburl.text) if st.tolower.contains("it's not you!") txtwebstatus.text = "down!" else txtwebstatus.text = "up!" end if catch ex exception cse() end try end if end sub
im making mac os x application, not ios.
there no magic way convert vb code obj-c, you'll have line line, means need learn objective-c.
here decent place start learning. apple provides lot of resources.
Comments
Post a Comment