ios - How to edit the contents while http Post? -
hi friends im getting info ie html contents next code..
-(void)connection:(nsurlconnection *)connection didreceivedata:(nsdata *)data { [receiveddata appenddata:data]; nsstring *htmlstr = [[nsstring alloc] initwithdata:self.receiveddata encoding:nsutf8stringencoding]; nslog(@"%@" , htmlstr); }
if want edit of contents in html page , want post it, how can that?
eg: if im using gmail account, , when html contents of gmail, want come in mail-id , password in html page (without using pre-defined ui) , want post contents.. when click on gmail in alternative should straight log-in without showing log-in page..
can , if yes how in objective c.?
- (void)connection:(nsurlconnection *)connection didreceivedata:(nsdata *)data
method gets called multiple times while web service returning response, improve alter info into:
- (void)connectiondidfinishloading:(nsurlconnection *)connection
you can following:
- (void)connectiondidfinishloading:(nsurlconnection *)connection { nsstring *htmlstr = [[nsstring alloc] initwithdata:self.receiveddata encoding:nsutf8stringencoding]; nsmutablestring *strtobechanged = [nsmutablestring stringwithstring:htmlstr]; // perform changes strtobechanged. }
hope makes sense you.
ios ios5 ios6 ios4 ios-simulator
No comments:
Post a Comment