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 Tutorials > Tutorial Requests

Reply
 
LinkBack Thread Tools Display Modes
Old 10-12-2008, 05:32 PM   #1 (permalink)
Application Developer
 
Join Date: Oct 2008
Location: Mississippi
Posts: 5
conjurer is on a distinguished road
Default Custom Keyboard

Lately I've been trying to figure out how to create a view that only takes up a portion of the screen for the purpose of making a custom keyboard, among other things. If anyone knows of an existing tutorial that would help in this aspect or knows how to accomplish this and is willing to share it would be greatly appreciated. This one has had me stumped for quite some time!

Thanks,
V
conjurer is offline   Reply With Quote
Old 10-12-2008, 08:38 PM   #2 (permalink)
Registered Member
 
Join Date: Oct 2008
Location: Ohio
Posts: 32
Deklann is on a distinguished road
Default

Look into Modal Views. Modal views behave just as the keyboard does (they slide up from the bottom of the screen,).

I would imagine that if you were going to try to implement your own keyboard, you would want to start with a good understanding of how a Modal View behaves.

Hope this helps....
Deklann
__________________
www.sdkcoder.com
Are my posts helping you? Please help support my forum!
Aiming to be one of the most comprehensive iPhone resources on the net.
Deklann is offline   Reply With Quote
Old 10-13-2008, 12:56 AM   #3 (permalink)
Application Developer
 
Join Date: Oct 2008
Location: Mississippi
Posts: 5
conjurer is on a distinguished road
Default

Modal Views are one of the approaches that I've tried. It gives the proper animation but I still haven't figured out how to make it not fill in the whole screen. I know I need to do something to the effect of:

CGRect screen = CGRectMake(0, 200, 320, 200);
UIView* halfScreen = [[UIView alloc] initWithFrame:screen]]

My problem is that I'm still not sure where to properly place the code or how to add the modal view as a subview of halfScreen without the program crashing. I'm also trying to learn to write my code without using the interface builder as a crutch so I can better understand the lifecycle for programs on an iphone.

Thanks,
V
conjurer is offline   Reply With Quote
Old 11-23-2008, 10:37 PM   #4 (permalink)
New User
 
Join Date: Oct 2008
Posts: 62
keyboardcowboy is on a distinguished road
Default

I just wrote a tutorial on customizing the UIKeyboard class. I just dont know how to add it to the tutorials section.
keyboardcowboy is offline   Reply With Quote
Old 02-15-2009, 09:44 PM   #5 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 9
nacho4d is on a distinguished road
Wink Please...

I am really interested in how to implement a customized Keyboard.
Can you give us some ideas, Please?

The only thing I found was the UIKeyboard from jailbreaked iPhones... but I want the official way.
nacho4d is offline   Reply With Quote
Old 04-24-2010, 05:52 AM   #6 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 1
arashparnia is on a distinguished road
Wink halfview

in the view that you like to add your half view.
#Import "thehalfview.h"

- (void) layoutSubviews{
CGRect r = [self bounds];
float w = [self bounds].size.width;
float h = [self bounds].size.height;
// use CGRectDivide(r, &helfview, &r, h * 0.10f, CGRectMinYEdge); to cut a //frame for it

halfview *thehalfview =
[[[halfview alloc]initWithFrame:halfview]autorelease];

[self addSubview:thehalfview];
}
// dont forget to setup your halfview
- (id) initWithFrameCGRect)frame{
self = [super initWithFrame:frame];
if (self == nil)
return nil;
arashparnia is offline   Reply With Quote
Reply

Bookmarks

Tags
partial, screen, subview

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
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,961
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

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