Main Controller
Added the following to the ViewDidLoad where 'addButtonPress ed' deals with the processing
Code:
NSNotificationCenter.defaultCenter().addObserver(self, selector: "addButtonPressed", name: "addToList", object: nil)
NSNotificationCenter.defaultCenter().addObserver(self, selector: "addButtonPressed", name: "addToList", object: nil)
NSString* myURLString = [NSString stringWithFormat:@"http://mydomain.com/uploads/%@", userimg]; NSURL* imageURL = [NSURL URLWithString:myURLString]; NSData* imageData = [NSData dataWithContentsOfURL:imageURL]; UIImage* image
URL url = new URL(tradeURL); connection
'mydata is the parsed JSON response, value1 is a double value If Not mydata.value1 Is Nothing Then ' process Else 'ignore End
If Not xlWorkBook Is Nothing Then xlWorkBook.Close()
Imports Excel = Microsoft.Office.Interop.Excel
Imports Microsoft.Office
xlApp = New Excel.Application
xlApp = CreateObject("Excel.Application")
xlWorkBook = xlApp.Workbooks.Open(....)
Dim myURL As HttpWebRequest
myURL = WebRequest.Create("https://www.abc.efg/data")
myURL.Method = "POST"
myURL.ContentType = "application/json"
etc...
Leave a comment: