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

  • Home
  • SEARCH
  • 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 8846211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:55:32+00:00 2026-06-14T11:55:32+00:00

I am developing a contact list view in iOS. I have a model class

  • 0

I am developing a contact list view in iOS. I have a model class with all the attributes like first/last names, email id etc. I also have a mutable array to save the phone nos. I know I can use a dictionary here. But my question is for an alternative.

I am thinking of using another model with phone no type and phone no as attributes, and save the objects of these class in the mutable array of the first model. I dont know how clear I am here, but I want to know is this a good way or is there any better way to do this?

  • 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-14T11:55:34+00:00Added an answer on June 14, 2026 at 11:55 am

    Its really debatable what would be the best approach here. Having a separate model object for the type/number is good if you think you might need to add additional functionality in the future (validations, etc.). If you just need to store data, a dictionary will be fine.

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

Sidebar

Related Questions

I am using grouped tableview for developing a contact list using database. I have
I'm developing Contact Application, which adds Email address, phone number. I have to create
I'm developing a chat app, but I have a problem. I've a list with
I am currently developing my first android application, which is actually my first contact
I am developing a webpage using jquery and I have a contact form in
I am developing app which add contact info to android contact list .to How
I have been developing a contact app, it allows : call, sms, delele, etc
i am developing a application in which i add contact to contact List. i
I am planning to start developing a Web Application, it's my first contact with
I'm developing my first app and have been reading a LOT here. I've been

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.