File > New Project...
Single View Applicationand click next.
c_prescriptionobject, see Data Model Setup.
MDPaginationHelperis created and initialized:
loadAllPagesis called, you'll get all the results in the first method, together with the results from calling
loadNextPage. So, if you need to get the results of both calls separately, implement both.
inverseOrder, as well as for some other pagination options (e.g. list property pagination, or paging using a field other than
_id), in the
MDPaginationHelper, you can leave that to the
MDPaginationManager. Just create the instances using the
MDPaginationManagerclass. Let's achieve the same as before; the only difference relies in how you create the instance:
kOperationProgressChangedNotification, which is declared in
MDUploadOperationobject is delivered inside the
NSNotification.objectproperty if it is notifying about upload progress. See below for more info.
MDUploadOperationsobject is delivered inside the
NSNotification.objectproperty if it is notifying about the following events:
MDUploadOperationwas added to the queue.
MDUploadOperationwas removed from completed/failed.
MDUploadOperationsclass by checking the the following class methods: Objective-C
MDUploadOperation. Here are some interesting features they provide:
progressNumberattribute to determine the progress percentage (measured in the 0..1 range) of the upload operation.
operationproperty, of class
NSURLSessionDataTaskfor the data task that the operation is using. You may call
cancelon this object to cancel the upload.
fileNameproperty contains the name of the file being uploaded.
NSProgressclass allows for fine grain progress reporting, the
operationProgressproperty returns the associated
NSProgressobject with this upload operations.
cancelon its data task, which you get from calling