smallseo.info

three20

Three20 is an Objective-C library for iPhone developers

View controller is drawing under my navigation bar after popping ttthumbsviewcontroller

I'm implementing the TTThumbsViewController from the Three20 project and things are finally starting to take shape. I push the TTThumbsViewController from the current view controller by just pushing it onto the current stack and animate the transition (common navigation controller push).

My problem is that when I pop the TThumbsViewController view controller, the navigation controller is stuck in a mode where its view controllers are drawn UNDER the navigation bar (which is now translucent).

Start

alt text

Push

alt text

Pop

alt text


Source: (StackOverflow)

TTThumbsViewController + navigationController issue

I am only using Three20 for a gallery in my app.

When I push my .. : TTThumbsViewController from another view, the navigation bar is not the color I want it to be (as per the rest of my app). I have set up a TTDefaultStyleSheet as per this stackoverflow QA. Is there something special I have to do as I am only using the TTThumbsViewController?

The thumbs view is also created with extra space at the top, as though it is leaving room for a navigation controller, without knowing that one is already there. How can I tell the TTThumbsViewController to use the existing uinavigationcontroller? Or behave as though it is?

MYThumbsViewController *mYThumbsViewController = [MYThumbsViewController alloc];
[self.navigationController pushViewController:mYThumbsViewController animated:YES];

The problem depicted graphically:

alt text

Thanks!


Source: (StackOverflow)

Are Facebook and Path using an open source library for their root navigation UI?

The latest update to Path includes a root navigation UI that is strikingly similar to the one Facebook included in v4 of their app a few months ago. Is there an open source version of this implementation or did Path build it from scratch? It doesn't appear that Three20 got an update from what I can see in their documentation.

enter image description here


Source: (StackOverflow)

Three20 v1.1 and Xcode 4

Is there an easy way of getting Three20 v1.1 to work under xCode 4? I followed the steps on http://three20.info/article/2011-03-10-Xcode4-Support but that seems to be for the master. I use v1.1 as I use the TTLauncher.

The project builds fine with a normal build, and runs perfect on an iPhone. But when I want to create the archive (for the IPA for distribution) then I get 18 errors and 8 warnings.

The first one is:

../scripts/Protect.command: line 23: cd: /Users/XXX/Library/Developer/Xcode/DerivedData/iDoms-cmyivarwxpbvqdfnyclqdrikrtmw/ArchiveIntermediates/iDoms/BuildProductsPath/Release-iphoneos/../three20/Three20UICommon: No such file or directory

Most others are 'no such file or directory' on e.g.: #import "Three20Core/TTGlobalCoreLocale.h"

or 'undeclared (first use of function)' which comes from the 'no such file or directory issue I presume'.

In my 'Header search paths' I have:

$(BUILT_PRODUCTS_DIR)/../three20
$(BUILT_PRODUCTS_DIR)/../../three20
../../three20/Build/Products/three20
/usr/include/libxml2

Any help would be very appreciated!


Source: (StackOverflow)

Rotating Three20 TTPhotoViewController inside TabBarController

Adding Three20 TTPhotoViewController on an empty UIWindow Rotation were working like a charm.

But when I moved the TTPhotoViewController to be created from UINavigationController inside a UITabBarController it does not rotate at all.

I made sure I return YES for every shouldAutorotateToInterfaceOrientation function.

Does Three20 Photo Gallery work in side UITabBarController with rotation?


How am I doing this?

[[TTURLRequestQueue mainQueue] setMaxContentLength:0];

TTNavigator *navigator = [TTNavigator navigator];
navigator.persistenceMode = TTNavigatorPersistenceModeAll;

navigator.window = [UIApplication sharedApplication].keyWindow;
TTURLMap *map = navigator.URLMap;
[map from:@"tt://appPhotos" toSharedViewController:[PhotoViewController class]];
[navigator openURLAction:[TTURLAction actionWithURLPath:@"tt://appPhotos"]];


Update 1: after reading some posts I can now rotate the images only inside the TTScrollView but the navigation bar is not rotating.

Update 2: I have subclass-ed both UITabBarController and UINavigationController to override shouldAutorotateToInterfaceOrientation, but it did not help.


Source: (StackOverflow)

Using Localizable.strings in iPhone application

I downloaded the three20 library:

http://three20.info/

And I opened the TTCatalog sample project that comes with this library:

http://img16.imageshack.us/img16/3183/screenshot20100302at752.png

As you can see, there are lots of Localizable.strings files.

When I opened the iPhone simulator and changed its language to for example French in the settings, the text on the button still remains in English:

http://img69.imageshack.us/img69/9775/screenshot20100302at812.png

I already checked that there is definitely a corresponding entry for the text "See All" in the Localization.strings of French.

Why and what are the steps to make it use the Localizable.strings files?

(This sample project does not come with any nib/xib file)

EDIT:

After adding the following XML in Info.plist:

...
<dict>
...
    <key>CFBundleLocalizations</key>
    <array>
    <string>de</string>
    <string>en</string>
    <string>es</string>
    <string>fr</string>
    <string>it</string>
    <string>ja</string>
    <string>zh_cn</string>
    <string>zh_tw</string>  
    </array>
</dict>
...

It works now!


Source: (StackOverflow)

Just how to you use TTStyledTextLabel?

All I want is to display some simple text in my viewController and have the hyperlinks autoparsed. When the user clicks on the link I want the control to somehow do a callback where I can do something with the URL. How can I achieve this?

I've already looked through the TTCatalog for hours. I have also tried looking into the source code of three20 as well as looking at the stack trace. No help. I just can't figure out how my app can react to the click of the URL. Any hints please?


Source: (StackOverflow)

Three20 library - subclass of TTPhotoViewController has an opaque navigation bar

I am using a TTPhotoViewController subclass from the Three20 library for showing images from a web location. The images load up fine but the navigation bar and toolbar show up with the default tint. I am using a nav bar with a custom tint (set in the MainWindow.xib)

I tried these things to get it to show black translucent bars but none of these seem to work.

  1. setting the navigation bar style to black translucent in MainWindow.xib
  2. setting the navigation bar style to black opaque in MainWindow.xib
  3. Explicitly setting the navigationbar style to black translucent in the subclass's viewWillAppear:

Can someone please tell me why this would happen and how I can solve this? Thanks.


Source: (StackOverflow)

understanding TTNavigator

following situation:

in a TTTableViewController i added some Cells with URLs. they are opening a class with @"tt://photos" for example. this works quite fine.

the first thing is, i saw some urls in TT Examples like @"tt/photos/1". is it possible to fetch this "1" in my photos class and say, for example okay, please open picture one, ore is this only another URL that was declared in TTNavigatior to open a specific Class?

the other thing is: is it possible to forward an object to the linked class? clicking a cell opens @"tt://photos" (the linked class in my TTNavigator)

working with normal tableviews i can overwrite my init method and send an object with my initialize method, is this also possible by clicking my TTItems?

thanks!


Source: (StackOverflow)

Recreate recipient bubble behaviour in Mail.app / Three20

Krumelur asked this question about how create a recipient bubble similar to the mail.app. Please see screenshots below of what I mean:

Mail.app picker bubble picture

Selected contact

I can create the look of this element (including the look when it has been selected) but I am struggling with getting the behaviour when it's part of a UITextField. How do you get the bubble to act as part of the UITextField text? For example, when you press the backspace button enough, the bubble becomes highlighted and after one more press will be deleted as if it was part of the text. I've also had difficulties moving the cursor as well.

Preferably the answer would be great in Monotouch but Objective-C answers are more than appreciated too. I'm not asking for the exact code (though if you are willing to part with it, then I won't say no! :D) but rather how to achieve this.

I'm aware of the Three20 project which has a similar element but I can't find where abouts in the code this is actually performed. I'm sorry if this doesn't make much sense, I've kinda struggled to put this question elequantly, please feel free to ask me any questions clarifying the question!


Source: (StackOverflow)

iphone / ipad - Compile three20 under xcode 4?

anyone successfully compiled three20 under XCode 4?

I tried, and changed all Base SDK to latest 4.2, but there is alway a error:

error: There is no SDK with the name or path '..../three20/src/Three20Core/iphoneos4.0'

in Three20UICommon and its Unit tests.

Anyone has a clue about this?

Also, in Xcode 3, I know I can let all UnitTests not to be compiled by deselecting the bulleye for UnitTests. How can I do it in XCode 4?

thanks


Source: (StackOverflow)

TTPickerTextField example

I've been trying all day and just can't make the the TTPickerTextField work. It displays, I set its dataSource to the example code's MockDataSource and type in a name from the mock and it doesn't work. There doesn't seem to be any documentation or any examples anywhere on the internet, something that I find surprising.

So: does anyone have (or can anyone throw together) a really simple example of how the TTPickerTextField works? All I want to do is have someone type something in and put it in a bubble, like in the iPhone Mail app.


Source: (StackOverflow)

Xcode 4 & three20 & create IPA archive: No such file or directory

In Xcode 3.2.5 I use "Build And Archive" to create an IPA file without any problems. How can I do that in Xcode 4? I think I have to use "Product -> Archive", but I get over 100 error messages in the three20 framework. Most are "No such file or directory". ("Product -> Build For -> Build For Archiving" works. No errors.)

For example, this is the first error message:

../scripts/Protect.command: line 23: cd: /Users/[USERNAME]/Library/Developer/Xcode/DerivedData/[PROJECTNAME]-blabla/ArchiveIntermediates/[PROJECTNAME]/BuildProductsPath/Release-iphoneos/../three20/Three20Core: No such file or directory

The path "/[PROJECTNAME]/BuildProductsPath/three20/" really doesn't exists, but this path exists: "/[PROJECTNAME]/three20/"

What can I do?


Source: (StackOverflow)

UINavigationController custom animation [duplicate]

Possible Duplicate:
Custom animation for pushing a UIViewController

Any of you achieved to make custom animation like expand from middle in UINavigationController? (for example Facebook app when you select news feed from the launcher view)

I seen one of trick like animating the view of the desired next controller but I am using Three20 framework and getting the next controller view is difficult.

So my only option is to play around with CATransition. I could manage to get some sort of animation that close to what I want using this piece of code.

CATransition* transition = [CATransition animation];
transition.duration = 1;
transition.timingFunction = [CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionFade;
transition.subtype = kCATransitionReveal;
[self.navigationController.view.layer addAnimation:transition forKey:kCATransition];

what it will do? It will animate fading type of animation. What I want is something like scale the view frame from CABasicAnimation.

anim.fromValue = [NSValue valueWithCATransform3D:CATransform3DMakeScale(0.1, 0.1, 1.0)];
anim.toValue = [NSValue valueWithCATransform3D:CATransform3DMakeScale(1.0, 1.0, 1.0)];

do you guys know how to achieve this? Something like transformation animation inside CATransition.


Source: (StackOverflow)

Monotouch Three20 app launcher or bindings

From what I've read about btouch; the bindings are not complete for three20.

Is there a project that provides either bindings for the Three20 app launcher or a pure MonoTouch implementation of a launcher UI element?

http://three20.info/showcase/launcher

enter image description here


Source: (StackOverflow)