Subscribe ( )

iPhone Programming Tutorials


 

Forum

You must be logged in to post Login Register

Search 

Custom Keyboard

User Post

3:31 am
October 9, 2008


conjurer

Noob

posts 5

1

Hi all,

I am trying to figure out how to make a keyboard control similar to the one that pops up when you click on a text field. Since there doesn't appear to be a UIKeyboard object that I can extend I tried making a custom modal view. The problem I'm running into is that it fills up the entire screen. Does anyone know how to create a modal view that only fills a portion of the screen or if there's a more preferable way of accomplishing the desired effect? Ideally I would like to come up with a solution that is generic enough to extend to other ui controls such as the picker view.

Thanks

V

9:10 am
October 9, 2008


VertigoSol

Moderator

posts 26

2

You can create a UIview that is just x percent of the screen size such as

// note screen size is around 430px or so
CGRect screen = CGRectMake(0, 200, 320, 200);
UIView* halfScreen = [[UIView alloc] initWithFrame:screen]]

//add subviews to this view ie your custom keyboard
//animate this to pop up like the keyboard

e^i -1 =0

12:58 pm
October 9, 2008


conjurer

Noob

posts 5

3

Are there any examples or tutorials that you know of that would point me in the right direction on where in the code to put the view and how to call it? I'm still fairly new to iphone/objective-c programming and have mostly used the interface builder for the view portion of programs up to this point.

Thanks

V

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

3 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 934 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.