how to pass arguments and parameters in json web service?
-(void)gettop10button
{
NSURL *url=[NSURL
URLWithString:@"http://appabn.com/iphone/files/api/api.php?q=helo_users&u_id=5&page=1"];
// web api link
NSURLRequest *request=[NSURLRequest requestWithURL:url];
connection=[NSURLConnection connectionWithRequest:request delegate:self];
in the last of the link we see that page=1 , i have more than 10 pages .
so how can i pass a variable/parameter/argument , so i can increment page
no. Thanks in advance 'int page; page++;
can perform like as .
in the last of the link we see that page=1 , i have more than 10 pages .
so how can i pass a variable/parameter/argument , so i can increment page
no. Thanks in advance 'int page; page++;
can perform like as .
if(connection)
{
webData=[[NSMutableData alloc]init];
}
[JustConfesstable reloadData];
No comments:
Post a Comment