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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:43:14+00:00 2026-06-01T05:43:14+00:00

I have a tableview in my app and I have set tint=1.0 . In

  • 0

I have a tableview in my app and I have set tint=1.0. In coding I am setting the background color to clear color. When I test in my iphone with iOS 4.3 it is showing the tableview properly but when I test in iphone with iOS 4.1 it is showing entire table in black color.

This is the code I have used to apply color in code

[cell setBackgroundColor:[UIColor clearColor]]; //changing backgroung color
UIView *bgColorView = [[UIView alloc] init];
[bgColorView setBackgroundColor:[UIColor darkGrayColor]];
[cell setSelectedBackgroundView:bgColorView]; //selected color
[bgColorView release];

What am I missing here?

  • 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-01T05:43:16+00:00Added an answer on June 1, 2026 at 5:43 am

    First of all you need to split your question into 2.

    To your first part. I don’t remember a concrete example but you can use some directives #ifdef to define the various code for various iOS versions.

    To your second part:

    self.mFavoritesNamesArray=[[beginWithB  sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)] mutableCopy]; //here it is showing leak
    

    I don’t see the whole your code but I think you defined a property mFavoritesNamesArray with a retain or copy modifier. So you probably alloc a memory via methods which are generated for properties automatically and via mutableCopy for the second time.

    The possible solution is to release this array manually before this last string and use it without “self.”. In this case you don’t need a property for it. And I think the similar error is in the first string of your code but I can’t be sure in it because of such a little amount of code

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

Sidebar

Related Questions

I have a UITableView in an iOS5.1 app where I set self.tableView.allowsMultipleSelection=YES; The Apple
So I have two TableView in one view of an iOS app. I have
I have implemented a Pull to refresh in my tableView like the iPhone app
I have a grouped tableview which I set its background like this in viewDidload;
I'm trying to convert this app i have from iPhone to iPad.. i've set
I have an app set up to have a tableview, which allows the user
I have a parent-child Core Data relationship set up in my iPhone app. I
I am learning iOS and I have written a simple iPhone app using iOS
I have a tableView which has cells with phone numbers. The app is not
I have an app that has a TableView, NavigationView and TabBar running together. There

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.