Unless there is something magical I haven't discovered yet, I don't think you've wired your button delegation correctly. It looks like you've told the button that the string @"tt://samples/new" is the object that receives the press event and you want it to send no message (call no method / nil). Create a method in the view controller with the button, such as this: - (void)addButtonPressed:(id)sender{ TTURLAction *urlAction = TTURLAction actionWithURLPath:@"tt://samples/new"; TTNavigator navigator openURLAction:urlAction; } Then replace your button init with this: self.navigationItem.
RightBarButtonItem = UIBarButtonItem alloc initWithTitle:@"Add New" style:UIBarButtonItemStyleBordered target:self action:@selector(addButtonPressed:) autorelease; This will invoke the TTNavigator singleton instance to open the action created with the string path provided. The button needs to be handled by a button delegate and self, your view controller, is perfectly appropriate for that. The handler method then causes a three2 navigation using a path.
If you've got things wired correctly in your appDelegate, three20 will create and push the view controller you mapped. Hope that helps.
The solution by Levous works, but you can simplify by using the magic Three20 openURLFromButton: selector instead of implementing your own. Try this: self.navigationItem. RightBarButtonItem = UIBarButtonItem alloc initWithTitle:@"Add New" style:UIBarButtonItemStyleBordered target:@"tt://samples/new" action:@selector(openURLFromButton:) autorelease; If you want to understand why this works checkout: Three20/src/Three20UI/source/UINSStringAdditions.m.In a nutshell, Three20 adds the openUrlFromButton method on NSString, which calls TTNavigator openURLAction.
Note: This solution will not work as the sender has to be of type UIView which UIBarButton is not. It worked before v1.02 though. Nowadays you need to implement the selector yourself with OpenURL.
Jeff (Three20 big boss) made a remark on this in pull request 463: https://github. Com/facebook/three20/pull/463.
This might work, I have used this to push a view onto the navigation controller. Gave an action to the navigation bar button, then the action of the following: -(IBAction)navigationRightBarButton:(id)sender{ TTNavigator navigator openURLAction: TTURLAction actionWithURLPath:@"tt://samples/new"; // goes tot he ttLauncher class } that will then push the view to the correct url path hope this helps.
Unless there is something magical I haven't discovered yet, I don't think you've wired your button delegation correctly. It looks like you've told the button that the string @"tt://samples/new" is the object that receives the press event and you want it to send no message (call no method / nil).
The solution by Levous works, but you can simplify by using the magic Three20 openURLFromButton: selector instead of implementing your own. Try this.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.