Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8614623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:09:50+00:00 2026-06-12T05:09:50+00:00

Please read the description in detail. I have 3 views/pages in my app. Table

  • 0

Please read the description in detail.

I have 3 views/pages in my app.

  1. Table view displays the list of names of Employes in a table view retrieved from data base. When select an employe pushed to the next vie details veiw.
  2. Details view:Displays details of selected employee here

    1. Roles table view: having N number of roles for employes in that organization. we can pic a role from here to set a role to an employee.

    2. Popup camera (iMagePicker) when we tap on employe profile pic image on details view.

Here i have problem on 2nd view Details view.

That i use the same view for two purpouses

.To Add new employee (if we select + add button on 1st vie)

. To edit existing employe if we tap on any row of employe in table

So to edit exist employe I passe a dictionary for the selecte employe details and fill the fields with the corresponding keys of dictionary when view will appear. So all fields displays employe details

To App i passes an empty dictionary when view will appear. so all fields are empty.

in this view i have option for capture picture, and a text field which navigates to the next view when we want to enter roles in it.

when i used these two senarios the view is navigates to some other views then the data i have typed in other fields is gets erased.

So can any advice *************

1. To shows empty fields for new employe, when we returns back to the view form camaera and roles table the data remains same what we have edited.

2.To display details of employes we can edit fileds and To shows empty fields for new contacts, when we returns back to the view form camaera and roles table the data remains same what we have edited.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:09:51+00:00Added an answer on June 12, 2026 at 5:09 am

    Just changes some code..

    I mean write your view fill up code in viewDidLoad instead of viewWillAppear

    As viewWillAppear runs each time a view is shown to user, and your data/view is again refilled with your dictionary and edited data is lost.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my homework, but please read my problem description first. I have to
Please find the following description i read about starting an HTTPS connection 1. A
Please read my update at the end of question after reading the answers: I'm
please read carefully because my english is not good, and the question has not
Before jumping on me, please read my question carefully :D. I know there are
Here is what I got so far. Please read the comment in the code.
Hi all (before closing based on the title, please read the bottom parragraph), I'm
I am curious to know why this is happening. Please read the code example
I hope the title explains what I'd like to achieve. If not, please read
Can someone please explain how Read/Show works.. I cannot find any tutorials on it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.