objective c - Generate unique name everytime like "Windows folder structure" behaviour -
i want create folder structure logic windows.i using sqlite database that. want generate unique name everytime. e.g. if user enters text name "new". , if again enter same name "new" should new(1). if again enter same name "new" should "new(2)". if user delete "new(1)" entry , enter "new" "new(1)" should placed in between "new" , "new(2)".
could suggest logic that? appreciated? in advance tejas
i consider have database id , foldername fields. need retrieve records database. in of query use like operator. once list go in loop , add add new entry comparing number. try this.
Comments
Post a Comment