- (void)request:(RKRequest*)request didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite{
currentProgress = totalBytesWritten / (float)totalBytesExpectedToWrite;
}
For a working demo, look at the RK demo examples, I believe this is in the DiscussionBoard example.- (void)request:(RKRequest *)request didReceiveData:(NSInteger)bytesReceived totalBytesReceived:(NSInteger)totalBytesReceived totalBytesExpectedToReceive:(NSInteger)totalBytesExpectedToReceive
{
double currentProgress = totalBytesReceived / (float)totalBytesExpectedToReceive;
NSLog(@"Progress: %f", (currentProgress*100.0));
}