1

I am developing chat application in objective c in XCode. So when chat message count reaches 100 then i want to delete rows of table in database of parse.com. So how can i do this programatically? From code i am using PFQuery object to insert data as below.

 // Initialize parse query with classname 'chatroom'
PFQuery *query = [PFQuery queryWithClassName:className];

chatData  = [[NSMutableArray alloc] init];
NSArray *array = [NSArray arrayWithObjects:Sender,receiver,nil];

// set query to retrieve table data which contain specific senderId and recieverId from parse table 'chatroom'
[query whereKey:SET_SENDER containedIn:array];
[query whereKey:SET_RECEIVER containedIn:array];

Any help will be appreciated.

1

1 Answer 1

1

I am using deleteInBackground property to delete record from Parse Table.

eg. deleteObjectId is defined Parse object.

[deleteObjectId deleteInBackground];  
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.