I am new for iphone developing. I get code from any where but i can nit understand what is use of this sign (=)which is shown in below image.
It means that you can move the row up or down in the table.
If you want to respond to those actions, take a look at your UITableViewDataSource
. The section on "Reordering Table Rows" is the relevant part.
This sign show that u can move row up and down for this in UItable Class u will get function which is define below.
// Override to support rearranging the table view.
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
//write your code
}
// Override to support conditional rearranging of the table view.
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
// Return NO if you do not want the item to be re-orderable.
return YES;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With