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-04-2010, 04:16 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 8
zeeshan is on a distinguished road
Default Problem with UITextView, Need Help

Hello Everyone,



Since last week, I am facing a problem with UITextView. The problem is, Whenever I am trying to place the cursor position in my text view, it gets editable (which I don't want) and because of that keyboard appears.



Basically, I want to set the cursor position on the UITextView without making it editable. I am forcefully hiding the default keyboad with the below shown code, but it is appearing whenever i touch the UITextView.



- (void)textViewDidChangeSelectionUITextView *)textView{
[NSTimer scheduledTimerWithTimeInterval:0.001 target:self selector:@selector(resign2) userInfo:nil repeats:NO];
}
- (void)scrollRangeToVisibleNSRange)range{
txtVIew.scrollEnabled = YES;
}



- (BOOL)textViewShouldBeginEditingUITextView *)textView{
[NSTimer scheduledTimerWithTimeInterval:0.001 target:self selector:@selector(resign2) userInfo:nil repeats:NO];
}
- (BOOL)textViewShouldEndEditingUITextView *)textView{

[NSTimer scheduledTimerWithTimeInterval:0.001 target:self selector:@selector(resign2) userInfo:nil repeats:NO];
}

-(void)resign2{
if([txtVIew isFirstResponder])
[txtVIew resignFirstResponder];
}





I have my own keyboard for typing on UITextView and I want to hide the default keyboard.

If any body has any solution for this problem, then please do let me know.
zeeshan is offline   Reply With Quote
Reply

Bookmarks

Tags
cursor position, keyboard, uitextview

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



» Advertisements
» Online Users: 354
12 members and 342 guests
ajay123123, Anwerbl, Arty Tales, ashaman64, baja_yu, ChrisYates, HemiMG, mini998, mottdog, newDev, Objective Zero, oceanlablight
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,878
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 07:59 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0