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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:28:43+00:00 2026-06-17T16:28:43+00:00

I want to create a view which should have a glass like effect. It

  • 0

I want to create a view which should have a glass like effect. It should look shining as well.
On that i want to add a UITextView which should appear transparent. I’m new to IPhone and not getting how to do this.
I don’t want to add image. Wanna do programmatically. The view should look like as if it is a mobile screen.

Thanks

  • 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-17T16:28:44+00:00Added an answer on June 17, 2026 at 4:28 pm

    You’ll have to do things if you don’t want to use the image.

    1. Add one UIView Use this code. And set gradient background color to it. Which will give you shiny glass like effect.

    Here is the code:

    .h file :
    
    UIColor                                         *pinkDarkOp;
    UIColor                                         *pinkLightOp;
    CAGradientLayer                                 *gradient;
    
    .m file :
    
    img_TopBarView = [[UIView alloc]initWithFrame:CGRectMake(0.0,0.0,1024.0,50.0)];
    img_TopBarView.userInteractionEnabled = YES;
    pinkDarkOp = [UIColor colorWithRed:15.0f/255.0 green:138.0f/255.0 blue:216.0f/255.0 alpha:1.0];
    pinkLightOp = [UIColor colorWithRed:12.0f/255.0 green:91.0f/255.0 blue:183.0f/255.0 alpha:1.0];
    gradient = [CAGradientLayer layer];
    gradient.frame = [[img_TopBarView layer] bounds];
    gradient.colors = [NSArray arrayWithObjects:(id)pinkDarkOp.CGColor,(id)pinkLightOp.CGColor,nil];
    gradient.locations = [NSArray arrayWithObjects:[NSNumber numberWithFloat:0.0f],[NSNumber numberWithFloat:0.7],nil];
    [[img_TopBarView layer] insertSublayer:gradient atIndex:0];
    [self.view addSubview:img_TopBarView];
    [img_TopBarView release];
    

    You have to take the values of pinkDarkOp and pinkLightOp as per your need. You can get this color code anywhere on google.

    For eg : http://gradients.glrzad.com

    1. For Creating the transparent UITextView you can use the alpha property of the UITextView.

    I hope this helps.

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

Sidebar

Related Questions

We want to create a screen which should have different list views and the
I have one grid view which i want to add in footer of listview
I want to create a view that contains two forms with their submit buttons.
I want to create a generic html table to excel file view that can
I want to create a query in TFS that allows me to view only
I have a VIEW which is SLOW. I don't like the VIEW Statements as
I have an iOS application for which I want to create a ViewController programmatically.
SCENARIO: I have bunch of matches. I want to create in my view a
I want to create the following view / set of views which behave following
I have a view like this: CREATE VIEW MyView AS SELECT Column FROM Table

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.