-1
进出口新的在Xcode编码和使用Objective C.但是我有一个从VB编写的我结束一个项目的旧代码想转换成目标C.VB代码,目标C
这里是代码:
Private Sub VitalityButton4_Click(sender As Object, e As EventArgs) Handles VitalityButton4.Click
If txtWebURL.Text <> Nothing Then
Try
Dim wc As New WebClient
wc.Proxy = Nothing
Dim ST As String = wc.DownloadString("http://isup.me/" & txtWebURL.Text)
If ST.ToLower.Contains("it's not just you!") Then
txtWebStatus.Text = "Down!"
Else
txtWebStatus.Text = "Up!"
End If
Catch ex As Exception
cse()
End Try
End If
End Sub
我正在制作Mac OS X应用程序,而不是iOS。
那要一行一行地做什么? – holex 2013-04-05 14:41:20
'在错误恢复下一个' – Cyrille 2013-04-05 14:57:18