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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:44:24+00:00 2026-06-08T08:44:24+00:00

i have a method i got colorWithHex, that lets me send a string like

  • 0

i have a method i got colorWithHex, that lets me send a string like ffaa29 (hex) and get a UIColor. The method works. if i do

self._mainConsole.textColor = [self colorWithHexString: choice];

I can set the color. But the problem is i want to store the color. For example if they enter an invalid color i’d want to return the current color.

When i do this it doesn’t work.

self.foregroundColor =[self colorWithHexString: choice];
self._mainConsole.textColor = self.foregroundColor;

Instead it goes black which to me sounds like its going to 000000. Now in my test ipad it works in one spot as above but not another. On a testers ipad 1 the second method doesnt work at all. What am i missing? could there be a memory issue?

Mike

  • 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-08T08:44:26+00:00Added an answer on June 8, 2026 at 8:44 am

    You are using a weak property to hold your color. That means it will be replaced with nil as soon as there is no other strong reference to your color object. Change your property to strong and everything should work as expected.

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

Sidebar

Related Questions

I am wring a button control like below. i have got a method that
I have got email method that works: <?php $to = eddy2012@gmail.com; $subject = Hi!;
I've got some 3rd party beans that have method signatures that fit quite well
I have got a JComponent. The paintComponent method is overridden. I mentioned that tooltips
I got a vertical testimonials belt and i have this method that animates its
I have got a method that takes a long time to complete and want
Ok I kinda got stucked on the basics.I have a method in class that
I have got a method in my MVC 3 controller class, that accepts two
I have got a method in which I have done something like: int? products=
I have got this method in my controller. public string GetTime(string zone) { DateTime

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.