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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:00:44+00:00 2026-06-06T18:00:44+00:00

I want to perform changes in the code which was developed using iOS 3.0,

  • 0

I want to perform changes in the code which was developed using iOS 3.0, so that it can run on iOS 5.0.

But the problem is this , the tag property of any control in iphone not taking the NSString value in iOS 5.0, while in iOS 3.0 there is no issue related to assign tag as a NSString.

I am getting this warning in iOS 5.0:

lview.tag=@"lblPatientDetail";

"incompatible pointer to integer conversion assigning to integer'(aka 'int') from NSString" 

This warning is present all over the project which is causing high number of issues.

So is there a way where we can assign NSString as a tag value in iOS 5.0?

  • 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-06T18:00:46+00:00Added an answer on June 6, 2026 at 6:00 pm

    Use NSDictionary instead if you want to recognize an object by string. I will provide the example below on how to use NSDictionary.

    NSDictionary *dictionary;
    NSArray *keys = [NSArray arrayWithObjects:@"key1", @"key2", @"key3", nil];
    
    NSArray *objects = [NSArray arrayWithObjects:@"How", @"are", @"you", nil];
    
    dictionary = [NSDictionary dictionaryWithObjects:objects forKeys:keys];
    
    for (id key in dictionary) {
    
        NSLog(@"key: %@, value: %@", key, [dictionary objectForKey:key]);
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am porting iOS code that works perfectly to the Android OS. I perform
I want perform a easy task in android, which when receiving a call the
I'm writing a jQuery plug-in so I can reuse this code in many places
This is perhaps not a question unique to Mercurial, but that's the SCM that
I want to have a feature for my website which can print the page
Just to illustrate what I want to do I'll pase this sample code for
I'm using EF CTP5 code-first with Sql CE 4.0. I am trying to perform
This functions perfectly, but I want to make it an once-function, not fixed-function. When
I have a code that creates file(s) in user-specified directory. User can point to
I want to perform action on change in count of rows of an HTML

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.