not able to understand that how to store value in userdefaults
Clash Royale CLAN TAG #URR8PPP not able to understand that how to store value in userdefaults i am new to swift and i want to know that from my response i want to store user id in userdefaults please any one help data = { "access_token" = b332236bb2c9a2a5e35452bff62f76ac; "contact_no" = 847334868; email = "jhdsjhs@gmail.com"; "fk_user_id" = 125; "is_active" = 1; photo = "usr_jbdcm1533033074.png"; "user_name" = schsjcsacksjah; "user_role" = 2; "user_type" = 0; }; message = "Customer registered successfully!"; success = 1; } i want to store fk_user_id in user defaults please can anyone help Are you able to fetch fk_user_id from your response ? Saving it is just one search and one click on google. – Sharad Chauhan 9 mins ago ...