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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:27:41+00:00 2026-05-28T05:27:41+00:00

Actually i am displaying events in calendar and for that i am adding subviews

  • 0

Actually i am displaying events in calendar and for that i am adding subviews for events in UIScrollview. now i want to make some portion transparent in my particular event. Please check below image.

enter image description here

so i want to make that background image of event transparent with particular frame. Let me know if you have any idea about this or any alternative for that.

  • 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-28T05:27:42+00:00Added an answer on May 28, 2026 at 5:27 am

    Here is a basic solution to clear a frame in a view using a custom drawLayer:inContext: method for your eventView custom class (the class that draws your event). Of course you have to inherit a class from UIView before (eg. MyEventViewClass).
    You also have to set the opaque property to NO

    -(void)drawLayer:(CALayer*)layer inContext:(CGContextRef)context
    {
           // Fill the bg with the color you want (here it is gray)
           // You can also draw an image (CGContextDrawImage:)
        CGContextSetFillColorWithColor(context, [UIColor grayColor].CGColor);
        CGContextFillRect(context, self.bounds);
    
          // Then clear the frame
        CGContextSetBlendMode(context, kCGBlendModeClear);
        CGContextFillRect(context, frameToClear);
    }
    

    Is it clear ? 😉

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

Sidebar

Related Questions

I have a databound listbox which is actually displaying two columns of data. It
actually this is not hang status, i mean..it slow response, so in that case,
Actually, almost exactly the same thing. A matrix of small views that would expand
Actually it's a lot easier to show you what I want to achieve instead
Actually, I want to integrate spring javadoc with my netbeans IDE. Spring website only
I have ObservableCollection<Foo> that is bound to an ItemsControl (basically displaying a list). Foo
Our users want to be able to type in &lt;p&gt;some text goes here.</p> which
Actually i had been practicing some of the java programs today(trying to learn it
I'm new to Sencha Touch and the Ext JS logic. Actually, I'm displaying a
I have a BindingList(T) that I am displaying in a DataGrid . I'm watching

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.