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 01-23-2012, 07:15 AM   #1 (permalink)
iOS Dev
 
Join Date: Mar 2011
Location: Brazil
Age: 26
Posts: 103
gbergamo is on a distinguished road
Send a message via ICQ to gbergamo Send a message via MSN to gbergamo Send a message via Skype™ to gbergamo
Default UINavigationController app from SingleView Application

Hey Everyone!
I'm using the Xcode 4.2 and I have some problems to make an app that have an UINavigationController.

I'm doing this way:

1 - create a new project Single View Application
2 - New File... (UIViewController subclass)
3 - In this new file, I delete the view, add a window and UINavigation Controller
4 - link File owner's view to Window and window's root view controller to UINavigationController
5 - set UINavigationController's UIViewController Class and Nib name to my Login Class (another UIView)
6 - in appDelegate.m I change the code to this:
Code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.viewController = [[NavigationBase alloc] initWithNibName:@"NavigationBase" bundle:nil];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}

The problem: The UINavigationController appear and the LoginViewController's button works, but the TextFields on the LoginViewController don't work, don't appear the keyboard.

What am I doing wrong?

thanks
__________________
Vai de Que? - Car supplies Util - Download
iJob - Job search (Br) - Download
iReembolso Lite - Refound control free - Download
iReembolso - Refound control - Download
gbergamo is offline   Reply With Quote
Old 01-23-2012, 07:53 AM   #2 (permalink)
Registered Member
 
Join Date: Dec 2011
Location: Colorado, USA
Posts: 7
ShawnArney is on a distinguished road
Default Make sure text field delegate is connected to LoginViewController

Quote:
Originally Posted by gbergamo View Post
The problem: The UINavigationController appear and the LoginViewController's button works, but the TextFields on the LoginViewController don't work, don't appear the keyboard.

What am I doing wrong?

Using Interface Builder... edit your LoginViewController.xib file. Make sure that the text field is connected to LoginViewController.h (connector) as a delegate.

Cheers,

Shawn Arney
iOS Professional Developer & Trainer

Learn iPhone Apps at: LearnApps.Org - Keeping it Simple: iPhone Training and Tutorials
ShawnArney is offline   Reply With Quote
Old 01-23-2012, 09:05 AM   #3 (permalink)
iOS Dev
 
Join Date: Mar 2011
Location: Brazil
Age: 26
Posts: 103
gbergamo is on a distinguished road
Send a message via ICQ to gbergamo Send a message via MSN to gbergamo Send a message via Skype™ to gbergamo
Default

Quote:
Originally Posted by ShawnArney View Post
Using Interface Builder... edit your LoginViewController.xib file. Make sure that the text field is connected to LoginViewController.h (connector) as a delegate.

Cheers,

Shawn Arney
iOS Professional Developer & Trainer

Learn iPhone Apps at: LearnApps.Org - Keeping it Simple: iPhone Training and Tutorials
Thanks to reply!
I have two textFields there and both textFields are connected to LoginViewController.h. The delegate and the outlet are all right
__________________
Vai de Que? - Car supplies Util - Download
iJob - Job search (Br) - Download
iReembolso Lite - Refound control free - Download
iReembolso - Refound control - Download
gbergamo is offline   Reply With Quote
Old 01-23-2012, 09:26 PM   #4 (permalink)
Registered Member
 
Join Date: Dec 2011
Location: Colorado, USA
Posts: 7
ShawnArney is on a distinguished road
Default

Quote:
Originally Posted by gbergamo View Post
Thanks to reply!
I have two textFields there and both textFields are connected to LoginViewController.h. The delegate and the outlet are all right
If it is not proprietary, post your project in a zip file... I'll take a look. Or pm it to me.

Cheers,
Shawn
ShawnArney is offline   Reply With Quote
Old 01-24-2012, 07:30 AM   #5 (permalink)
iOS Dev
 
Join Date: Mar 2011
Location: Brazil
Age: 26
Posts: 103
gbergamo is on a distinguished road
Send a message via ICQ to gbergamo Send a message via MSN to gbergamo Send a message via Skype™ to gbergamo
Default

Quote:
Originally Posted by ShawnArney View Post
If it is not proprietary, post your project in a zip file... I'll take a look. Or pm it to me.

Cheers,
Shawn
Shawn, thanks to reply again...
So I get a way to do that. I'll make just a nib with the navigation controller and set it to Main Interface in target Summary. It's works perfect!

Thank you again!
__________________
Vai de Que? - Car supplies Util - Download
iJob - Job search (Br) - Download
iReembolso Lite - Refound control free - Download
iReembolso - Refound control - Download
gbergamo 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



» Advertisements
» Online Users: 384
10 members and 374 guests
7twenty7, Atatator, FrankWeller, glenn_sayers, iphonedevshani, MAMN84, mraalex, QuantumDoja, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,674
Threads: 94,122
Posts: 402,907
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Atatator
Powered by vBadvanced CMPS v3.1.0

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