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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:50:30+00:00 2026-05-21T09:50:30+00:00

Hi is there any library or special view in cocoa touch which help to

  • 0

Hi is there any library or special view in cocoa touch which help to create a popup window like when the istore ask you for your password and name?or is it transparent view with image 2 textfields and 2 buttons?
I need it because i want to make my login screen similar.
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-05-21T09:50:31+00:00Added an answer on May 21, 2026 at 9:50 am

    If you want to create a view that looks similar, your best bet is probably to create a UIAlertView subclass. You could create your own subclass and add the required elements.

    Create a UIAlertView subclass like this in the header:

    @interface LoginView : UIAlertView {
        // instance vars
    }
    
    // methods and properties 
    
    @end 
    

    As for the implementation of LoginView, please keep in mind the following …

    In order to resize the UIAlertView to fit your contents (buttons, labels), you’d have to set the message text to some amount of empty lines, e.g. you could add 5 empty lines by doing the following on your UIAlertView subclass:

    // This is a subclass of UIAlertView 
    @implementation LoginView
    
    - (id)init 
    {
        self = [super init];
        if (self) 
        {
            // add as many newlines as you need to fit
            // the controls (buttons, labels, etc...)
            [self setMessage: @"\n\n\n\n\n"]; 
    
            CGRect frame = CGRectMake(10.0f, 10.0f, 200.0f, 30.0f);
            UILabel *label = [[UILabel alloc] initWithFrame:frame];
            [label setBackgroundColor:[UIColor clearColor]];
            [label setText:@"Username:"];
            [self addSubview:label]
            [label release];
        }
        return self;
    }
    

    ^ Just add buttons and labels like on any other UIView. Create an instance of this view and call the -show method to display the view, e.g.:

    #import "LoginView.h"
    
    - (void)displayLogin 
    {
        LoginView *loginView = [[[LoginView alloc] init] autorelease];
        [loginView show];
    }
    

    To make the LoginView more flexible, create a custom initializer which accepts a target (of type id) and selector (of type SEL). When someone presses the login button, make it use the target and selector to perform the actual login. Or put the login code in the LoginView itself and create a delegate that informs the caller whether a login was successful.

    This approach is kind of ‘hacky’ with the empty line stuff, but the result looks very nice 🙂

    P.S.: remember that when you create a view like this, you shouldn’t call -setMessage: on the instance, as it will reset the size (frame) of the view (or override setMessage: on the subclass to prevent resizing). If you need some label to write text on, create your own label and add it as a subview.

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

Sidebar

Related Questions

Is there any library out there that I can use to create epub files
Is there any external library using which one can edit and save XML files
I'm building an iPhone app which uses the sqlite3 library - are there any
Is there any library for distributed in-memory cache, distributed tasks, publish/subscribe messaging? I have
Is there any library in C for Linux to get gpu information for example
Is there any library for playing MKV (matroska multimedia container) files in Flash (AS3,
Is there any Library for .NET that returns SPARQL results in some structured List
is there any javascript library that provides me with a custom event as soon
Is there any c# library that handles lossless conversion between different image formats?
Is there any freeware library (controls) for ASP MVC implementing posting and displaying comments?

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.