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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:34:08+00:00 2026-05-23T12:34:08+00:00

I am developing an application in which I have to show the selected time

  • 0

I am developing an application in which I have to show the selected time in my clock image.
Description:-
What I exactly want to say it I am having a image of circle. Now according to the selected time I want that portion to be filled in some other color on my circle image.
Please help me in doing this.
I am stuck here.

I have attached the image that will describe more what I exactly want to do.
I also tried it with doing it with pie-chart but area showing not giving proper time.
Please please help me.

enter image description here

In this image it shows time 1:am to 6:am
Any help would be highly appreciated.

  • 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-05-23T12:34:09+00:00Added an answer on May 23, 2026 at 12:34 pm

    For what you want above (not using coreplot). Place this code in the relevant drawRect/drawInContext method.

    Not at mac so not 100% sure it will compile. Should be close. Also might be out by 90

    #include <math.h>
    
    CGFloat radius = 100;
    //CGFloat pi = 3.1415927; //comes for free in math.h
    
    //draw underlying circle;
    UIBezierPath *basecircle = [UIBezierPath bezierPathWithOvalInRect:CGRectMake(0,0,radius*2,radius*2)];
    [[UIColor blackColor] set];
    [basecircle fill];
    
    CGFloat starttime = pi/6; //1 pm = 1/6 rad
    GFloat  endtime = pi;  //6 pm = 1 rad
    
    //draw arc
    CGPoint center = CGPointMake(radius,radius);
    UIBezier *arc = [UIBezierPath bezierPath]; //empty path
    [arc moveToPoint:center];
    CGPoint next;
    next.x = radius + radius * sin(starttime);
    next.y = radius + radius * cos(starttime);
    [arc moveToPoint:next]; //go one end of arc
    [arc addArcWithCenter:center radius:radius startAngle:starttime endAngle:endtime clockwise:YES]; //add the arc
    [arc moveToPoint:center]; //back to center
    
    [[UIColor yellowColor] set];
    [arc fill];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an application in which I have to show a filled arc
I am developing an iPhone application in which I need to show an image
I am developing an application in which I have to show the address that
I am developing an android application in which i have to show large data
I am developing an android application in which i have to show data from
I'm developing an application which currently have hundreds of objects created. Is it possible
I am developing an application in which i have to get data from .xls
I am developing an application which requires to add Calendar event. I have written
Hai every one I am developing an windows application in which i have to
I am developing an application in C# WPF which will have Client-Server architecture (Client

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.