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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:56:33+00:00 2026-06-02T23:56:33+00:00

I am facing this issue on device that assigning the selected row value of

  • 0

I am facing this issue on device that assigning the selected row value of picker takes too much time to be shown on label while on simulator it works fine.

Below is the code:

-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row
      inComponent:(NSInteger)component
{
    if (pickerView == rewardsName) {

    NSString *selectedReward = [self.rewards objectAtIndex:row];

    if ([reward1.text length]==0){
        //set label 1

        reward1.text = selectedReward;
    }
    if ([reward2.text length]==0){
        //set label 2

        reward2.text = selectedReward;
    }
    if([reward3.text length]==0){
        //set label 3.

        reward3.text = selectedReward;
    }
    }

    else if(pickerView == selectNamazPicker){

        aNumberString = [self.namazArray objectAtIndex:row];

        NSLog(@"aNumberString:: %@", aNumberString);
    } 
}

Can anyone tell me what can be the issue … I am unable to find one…

**

EDITED:
ISSUE RESOLVED:

**

For others who would face this issue.

I don't know whether it was creating the problem or not. But I did make these changes to my code.

In my .h file, previously I was just defining properties of UILabels (reward1, reward2 etc) with IBOutlet and not ivars. But then I defined ivars as IBOutlet UILabel reward1; etc and eliminated IBOutlet from properties then it started working fine. 

Now the problem has resolved.
  • 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-02T23:56:35+00:00Added an answer on June 2, 2026 at 11:56 pm

    For others who would face this issue.

    I don’t know whether it was creating the problem or not. But I did make these changes to my code.

    In my .h file, previously I was just defining properties of UILabels (reward1, reward2 etc) with IBOutlet and not ivars. But then I defined ivars as IBOutlet UILabel reward1; etc and eliminated IBOutlet from properties then it started working fine.

    Now the problem has resolved.

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

Sidebar

Related Questions

Please help me with this issue that I am facing on production server. I
My development team of four people has been facing this issue for some time
I am facing this issue on Android 2.3.5 (and possibly earlier Android versions) When
Hell All, So I have been facing this behavior for quite some time and
hello i am facing this stupid issue with no help any where. i am
ghost noscript tag more info here I am facing exactly this issue, how shall
I’m currently facing an issue that my Oracle knowledge cannot solve, I’m definitely not
I am facing this issue: I have lots of threads (1024) who access one
I am facing a strange issue with screen scrolling on 9810 device and simulator.
I am facing a weird issue while running my project on the device. I

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.