Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-06-2008, 02:38 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2008
Posts: 22
satyanarayanagv is an unknown quantity at this point
Default Create Password TextFiled

Hi,

I need to create a Login View.For this I need a TextField for entering Password.
He is my code below.

Code:
- (UITextField *)createPasswordTextField
{
	CGRect frame = CGRectMake(0.0, 0.0, TEXTFIELDWIDTH, TEXTFIELDHEIGHT);
	UITextField *returnTextField = [[UITextField alloc] initWithFrame:frame];
    returnTextField.borderStyle = UITextBorderStyleBezel;
    returnTextField.textColor = [UIColor blackColor];
	returnTextField.font = [UIFont systemFontOfSize:17.0];
    returnTextField.placeholder = @"<enter password>";
	returnTextField.secureTextEntry = YES;
    returnTextField.backgroundColor = [UIColor whiteColor];
	
	returnTextField.keyboardType = UIKeyboardTypeDefault;
	returnTextField.returnKeyType = UIReturnKeyDone;
	
	returnTextField.clearButtonMode = UITextFieldViewModeWhileEditing;	// has a clear 'x' button to the right
	
	return returnTextField;
}
But with this approach when entering Password the newly enterd character is visble i.e like if we enter "sap" then it appears as "**p|".

Any suggestion would be helpful.

Thanks
Satya
satyanarayanagv is offline   Reply With Quote
Old 06-06-2008, 11:25 AM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 802
scottiphone is on a distinguished road
Default Re: Create Password TextFiled

Look at UICatalog(?) example.
scottiphone is offline   Reply With Quote
Old 06-06-2008, 12:49 PM   #3 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 420
jeff_lamarche is an unknown quantity at this point
Send a message via AIM to jeff_lamarche Send a message via Yahoo to jeff_lamarche
Default Re: Create Password TextFiled

satyanarayanagv -

I think what you're seeing is actually a bug in the current release of Mac OS X iPhone (see, I'm using the new name already and it hasn't even been announced )

I opened Radarweb 5984800 on Apple's Bug Reporter about this when the new release came out.
__________________
Check out my iPhone Dev Blog
You can send me e-mail at my forum username at mac dot com.
jeff_lamarche is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Read / write / create data files Xavier iPhone SDK Development 12 01-17-2011 04:02 AM
use Interface Builder to create a UITableViewCell martinn iPhone SDK Development 3 05-29-2009 03:30 AM
How do I create my default.png? Fastrak iPhone SDK Development 4 08-22-2008 03:18 AM
Password manager/to do list program myersn024 iPhone SDK Development 4 07-10-2008 01:12 PM


» Advertisements
» Online Users: 334
2 members and 332 guests
guusleijsten, LEARN2MAKE
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,880
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:44 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0