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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:09:32+00:00 2026-06-14T12:09:32+00:00

I’ve developed the game zoo keeper on java platform. Now I need to make

  • 0

I’ve developed the game zoo keeper on java platform. Now I need to make it run on ios, however I am not familiar with xcode and objc. I meet some problems when using UIView and UIImageview. Say we have 8*8 icons(images) with 5 types, we change two neighbor icons and whenever 3 icons or more are identical on horizontal or vertical line, they would be eliminated and create new icons to replace on previous locations. To implement it in java, i just need to check conditions and delete those eliminated icons and draw new ones(all according to the coordinates) then repainted the JPanel. But how would I implement it in ios? Not say eliminating process, I don’t even know how to align those 64 (8*8) icons on the UIView. At first I think maybe using the UIImageview and then addSubview on one background UIView. But if in this way, there would be 64 subviews, it would be totally a mess. I am so new to the xcode and objc, and I have only 2 weeks to finish the task. Can anybody help me to my problem? Thanks so much!!

  • 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-14T12:09:33+00:00Added an answer on June 14, 2026 at 12:09 pm

    from what I gathered, in Java you just PAINTED the icons inside a JPanels paintComponent?

    well you could do it totally analog in this case.. place ONE uiview on the screen which acts as your JPanel/Drawing Canvas. In drawRect do your drawing the same way as you did in java

    @interface CustomView : UIView
    @end

    @implementation CustomView
    
    - (void)drawRect:(CGRect)dirtyRect {
        [[UIColor redColor] set];
        for(int ix = 0; ix < ITEMS_PER_ROW; ix++ ) {
            for(int iy = 0; iy < ITEMS_PER_COLUMN; iy++) {
                //draw item at ix and iy
                CGPoint pt = CGPointMake();
                CGRect r = CGRectMake(ix*5;iy*5, 5, 5);
                CGRectFill(r);
            }
        }
    }
    
    @end
    

    *typed inline, no guarantees ^^


    that said, I would go with CALayers

    not drawing it but using 64 sublayers.. well maybe not 64 … maybe you could group it a bit
    => you’d then have the benefit of implicit animations

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

Sidebar

Related Questions

I need a function that will clean a strings' special characters. I do NOT
I have thousands of HTML files to process using Groovy/Java and I need to
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
In my XML file chapters tag has more chapter tag.i need to display chapters
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have been unable to fix a problem with Java Unicode and encoding. 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.