ios - Master-detail app: name of cell is my string -


by started master detail application template xcode 6 beta 2, when user clicked "+" button add cell, cell take default date name. i've add alert view (that contain text field) when user clicked "+" button. had tape name text field , value store in string i've declared. , question how can define name of cell string (i wan't cell's name string).

that's in code:

 nsmanagedobject *newmanagedobject = [nsentitydescription insertnewobjectforentityforname:[entity name] inmanagedobjectcontext:context]; 

or

[newmanagedobject setvalue:stringnewitem forkey:@"nomrecette"]; 

thank's answers.

gilles

add value datasource of tableview (you have nsarray that), , force reload after dismiss alert view!


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -