Login - > First View (tableviewcontroller)
I'm having a bit of a problem getting my head round the logic. At the moment, I have a login and the main app. Upon a successful login, the user can access the main up. However, on the first view after the login, there are 4 cells on the tableviewcontroller. This changes depending on the user. So a user may have access to only 3 of the 4 cells.
I have implemented Json further down in my app so I kind of understand how it works. My question is, upon Login, how can I send something so that my app can read for it to show a certain number of cells?
P.S. at the moment, I thinking of when User 1 logs in, it will echo 1110 (3 of the 4 cells appear) and when User 2 logs in, it will echo 1111 (all cells appear). But how would my "First View" page read this?
Thanks in advance.
|