Understanding the TTNavigation Demo

89 views
Skip to first unread message

elpuerco

unread,
Mar 3, 2011, 8:32:13 PM3/3/11
to Three20
Hi

I'm creating a new app to learn how to use TTNavigator rather than the
stock UINavigationController.....but am not getting very far!

When I create a new project and add three20 all goes well, but then
when I try to add code to match the nav demo I just get a black
screen?

I see there is no nib use, in fact I see no assignment to a
window.......

cannot someone point me to where I am going wrong?

Thanks

ep

Savanah Cummings

unread,
Mar 4, 2011, 10:52:57 AM3/4/11
to thr...@googlegroups.com
Have you looked at the samples/TTNavigatorDemo project?

On Thu, Mar 3, 2011 at 8:32 PM, elpuerco <elpue...@gmail.com> wrote:
Hi

I'm creating a new app to learn how to use TTNavigator rather than the
stock UINavigationController.....but am not getting very far!

When I create a new project and add three20 all goHaes well, but then

when I try to add code to match the nav demo I just get a black
screen?

I see there is no nib use, in fact I see no assignment to a
window.......

cannot someone point me to where I am going wrong?

Thanks

ep

--
You received this message because you are subscribed to the Google
Groups "Three20" group.
To post to this group, send email to thr...@googlegroups.com
To unsubscribe from this group, send email to
three20+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/three20?hl=en

To learn more about Three20, check out
http://Three20.info/

elpuerco63

unread,
Mar 4, 2011, 12:03:54 PM3/4/11
to thr...@googlegroups.com
Yes, as per the title of my thread ;-)

ep


Savanah Cummings

unread,
Mar 4, 2011, 3:06:00 PM3/4/11
to thr...@googlegroups.com
I guess I read that as "I'm building a navigation demo app", not "I'm trying to understand the TTNavigator sample"...

Are you saying your app has the same code but behaves differently?  I guess you have to go diffing the project.pbxproj files.

elpuerco63

unread,
Mar 4, 2011, 5:38:22 PM3/4/11
to thr...@googlegroups.com
Hi,

I created a new window based app and added the code as in the demo project, removed the references to window as they do not appear in the demo as well as removing the xibs.

The app compiles and runs with no error, just a black screen.

I have now found that the didFinishLauching does not get called???

I see no difference in my sections of code in relation to the demo?

I also read another post going back a while where someone had exact problem but solution was not posted.

I don't know where to look?

Have even tried adding a window with no joy?

ep


Jeff Verkoeyen

unread,
Mar 4, 2011, 5:42:06 PM3/4/11
to thr...@googlegroups.com
Open "main.m" in "Other Sources" and find this line:

int retVal = UIApplicationMain(argc, argv, nil, nil);

You will need to change the last parameter to a string containing name of your app delegate. For example, my app delegate is declared as "@interface AppDelegate", so I would write:

int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");

Cheers,
- Jeff

el puerco

unread,
Mar 4, 2011, 6:09:02 PM3/4/11
to thr...@googlegroups.com
Ding Dong!  Thanks Jeff, now I can get to learning ;-))))

ep

John Wang

unread,
Mar 5, 2011, 1:03:07 AM3/5/11
to Three20
This needs to go into the FAQ. I'll add that in. It's a very common
Three20 beginning problem. Primarily, because very few people touch
the main.c and even the prefix files. It's been the cause of a lot of
confusion for people. These little issues will go away. :)

On Mar 4, 1:09 pm, el puerco <elpuerc...@gmail.com> wrote:
> Ding Dong!  Thanks Jeff, now I can get to learning ;-))))
>
> ep
>
>
>
>
>
>
>
> On Fri, Mar 4, 2011 at 10:42 PM, Jeff Verkoeyen <jverk...@gmail.com> wrote:
> > Open "main.m" in "Other Sources" and find this line:
>
> > int retVal = UIApplicationMain(argc, argv, nil, nil);
>
> > You will need to change the last parameter to a string containing name of
> > your app delegate. For example, my app delegate is declared as "@interface
> > AppDelegate", so I would write:
>
> > int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
>
> > Cheers,
> > - Jeff
>
> > On Fri, Mar 4, 2011 at 5:38 PM, elpuerco63 <elpuerc...@gmail.com> wrote:
>
> >> Hi,
>
> >> I created a new window based app and added the code as in the demo
> >> project, removed the references to window as they do not appear in the demo
> >> as well as removing the xibs.
>
> >> The app compiles and runs with no error, just a black screen.
>
> >> I have now found that the didFinishLauching does not get called???
>
> >> I see no difference in my sections of code in relation to the demo?
>
> >> I also read another post going back a while where someone had exact
> >> problem but solution was not posted.
>
> >> I don't know where to look?
>
> >> Have even tried adding a window with no joy?
>
> >> ep
>
> >> On 4 Mar 2011, at 20:06, Savanah Cummings <savanah.cummi...@gmail.com>
> >> wrote:
>
> >> I guess I read that as "I'm building a navigation demo app", not "I'm
> >> trying to understand the TTNavigator sample"...
>
> >> Are you saying your app has the same code but behaves differently?  I
> >> guess you have to go diffing the project.pbxproj files.
>
> >> On Fri, Mar 4, 2011 at 12:03 PM, elpuerco63 < <elpuerc...@gmail.com>
> >> elpuerc...@gmail.com> wrote:
>
> >>> Yes, as per the title of my thread ;-)
>
> >>> ep
>
> >>> On 4 Mar 2011, at 15:52, Savanah Cummings < <savanah.cummi...@gmail.com>
> >>> savanah.cummi...@gmail.com> wrote:
>
> >>> Have you looked at the samples/TTNavigatorDemo project?
>
> >>> On Thu, Mar 3, 2011 at 8:32 PM, elpuerco < <elpuerc...@gmail.com><elpuerc...@gmail.com>
> >>> elpuerc...@gmail.com> wrote:
>
> >>>> Hi
>
> >>>> I'm creating a new app to learn how to use TTNavigator rather than the
> >>>> stock UINavigationController.....but am not getting very far!
>
> >>>> When I create a new project and add three20 all goHaes well, but then
> >>>> when I try to add code to match the nav demo I just get a black
> >>>> screen?
>
> >>>> I see there is no nib use, in fact I see no assignment to a
> >>>> window.......
>
> >>>> cannot someone point me to where I am going wrong?
>
> >>>> Thanks
>
> >>>> ep
>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "Three20" group.
> >>>> To post to this group, send email to <thr...@googlegroups.com><thr...@googlegroups.com>
> >>>> thr...@googlegroups.com
> >>>> To unsubscribe from this group, send email to
> >>>>  <three20%2Bunsu...@googlegroups.com><three20+unsubscribe@googlegroups.c om>
> >>>> three20+u...@googlegroups.com
> >>>> For more options, visit this group at
> >>>>  <http://groups.google.com/group/three20?hl=en><http://groups.google.com/group/three20?hl=en>
> >>>>http://groups.google.com/group/three20?hl=en
>
> >>>> To learn more about Three20, check out
> >>>>  <http://Three20.info/> <http://Three20.info/>http://Three20.info/
>
> >>>  --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Three20" group.
> >>> To post to this group, send email to <thr...@googlegroups.com><thr...@googlegroups.com>
> >>> thr...@googlegroups.com
> >>> To unsubscribe from this group, send email to
> >>>  <three20+u...@googlegroups.com><three20+u...@googlegroups.com >
> >>> three20+u...@googlegroups.com
> >>> For more options, visit this group at
> >>>  <http://groups.google.com/group/three20?hl=en><http://groups.google.com/group/three20?hl=en>
> >>>http://groups.google.com/group/three20?hl=en
>
> >>> To learn more about Three20, check out
> >>>  <http://Three20.info/> <http://Three20.info/>http://Three20.info/
>
> >>>  --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Three20" group.
> >>> To post to this group, send email to <thr...@googlegroups.com>
> >>> thr...@googlegroups.com
> >>> To unsubscribe from this group, send email to
> >>>  <three20%2Bunsu...@googlegroups.com>
> >>> three20+u...@googlegroups.com
> >>> For more options, visit this group at
> >>>  <http://groups.google.com/group/three20?hl=en>
> >>>http://groups.google.com/group/three20?hl=en
>
> >>> To learn more about Three20, check out
> >>>  <http://Three20.info/>http://Three20.info/
>
> >>  --
> >> You received this message because you are subscribed to the Google
> >> Groups "Three20" group.
> >> To post to this group, send email to <thr...@googlegroups.com>
> >> thr...@googlegroups.com
> >> To unsubscribe from this group, send email to
> >>  <three20+u...@googlegroups.com>
> >> three20+u...@googlegroups.com
> >> For more options, visit this group at
> >>  <http://groups.google.com/group/three20?hl=en>
> >>http://groups.google.com/group/three20?hl=en
>
> >> To learn more about Three20, check out
> >>  <http://Three20.info/>http://Three20.info/

elpuerco63

unread,
Mar 5, 2011, 3:00:07 AM3/5/11
to thr...@googlegroups.com
All part of the journey though ;-)

Am pleased it is resolved

Thanks

John Wang

unread,
Mar 7, 2011, 4:13:21 PM3/7/11
to Three20
currently in website development branch:
https://github.com/Three20/Articles/commit/659ec37ba22875018255eb83e90db52506f92356

On Mar 4, 10:00 pm, elpuerco63 <elpuerc...@gmail.com> wrote:
> All part of the journey though ;-)
>
> Am pleased it is resolved
>
> Thanks
>
> >>>>>>  <three20%2Bunsu...@googlegroups.com><three20+unsubscr...@googlegroups.c om>
Reply all
Reply to author
Forward
0 new messages