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 6165559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:11:13+00:00 2026-05-23T22:11:13+00:00

Getting data from NSUSerDefaults and Passing has parameter application get crashed NSUserDefaults *prefs =

  • 0

Getting data from NSUSerDefaults and Passing has parameter application get crashed

    NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
   [loginController showView:[prefs objectForKey:kSavedUserName] :[prefs objectForKey:kSavedUserPassword]];
//              [loginController showView:@"abcd03@gmail.com" Password:@"apple”];

When i am printing those value in NSLog [prefs objectForKey:kSavedUserPassword] is showing value. password and [prefs objectForKey:kSavedUserName] user name.

If I hard-coded my requirement parameters it working fine.

My crash log is

unrecognized selector sent to instance 0x5ccc2d0
2011-07-21 14:32:27.721 iShop[3815:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[LoginViewController showView::]: unrecognized selector sent to instance 0x5ccc2d0'
*** Call stack at first throw:
  • 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-05-23T22:11:15+00:00Added an answer on May 23, 2026 at 10:11 pm

    Your loginController doesn’t respond to the showView:: message, that’s why your app crashes. Check the method name in LoginViewController, and correct it. I think there is no matter with NSUserDefaults.
    Also try to avoid unamed parameters in selectors, always name them, to avoid problems.

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

Sidebar

Related Questions

This solution has evaded me all day. I am getting data from my database,
Getting data from a database table to an object in code has always seemed
I'm getting data from an array. For some reason the array has key values
I am building an application in which i am getting data from xml and
I have a web application where I am getting data from an oracle database
I'm curious as if anyone has used any method of getting data from perforce
I'm getting data from a MySQL table that has 2 columns (idDoc, tag) describing
how can i getting data from listbox in second form named listform while i
What are the differences between using SqlDataAdapter vs SqlDataReader for getting data from a
I have the following situation. Im getting data from an external system in the

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.