Three20 is an Objective-C library for iPhone developers
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).
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:
I downloaded the three20 library:
And I opened the TTCatalog sample project that comes with this library:
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:
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)
After adding the following XML in Info.plist:
It works now!
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?
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.
- setting the navigation bar style to black translucent in MainWindow.xib
- setting the navigation bar style to black opaque in MainWindow.xib
- 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.
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?
Krumelur asked this question about how create a recipient bubble similar to the mail.app. Please see screenshots below of what I mean:
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!
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?
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.
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
"/[PROJECTNAME]/BuildProductsPath/three20/" really doesn't exists, but this path exists:
What can I do?
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
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.
I have a project that has one target dependency. The target dependency is dependent on a framework called Three20.
The dependency tree looks like this.
When I tried to build and run I get the following error message.
Workspace Integrity Couldn't load Three20.xcodeproj because it is
already opened from another projet or workspace.
I have only one project open. Any suggestions on why I am getting this message?
I wan to add a view in my iPhone app where the user can scroll (paged) through a series of web loaded images.
I've been reading many threads and most of them end up suggesting the Three20 lib.
I've tried that and looks complicated to integrate and quite heavy in size (1.2Mb added to my app).
Additionally I only need the TTPhotoViewContoller class, but I have to integrate with the whole Three20 bundle.
Is there a lighter solution or component to do a image scroller on iPhone?
Thanks in advance.
I was just trying out a project of mine which had Three20 in it and it seems that it doesn't compile/gives me build error. Seems like it's because some of the UITouch interface has changed. Wonder if there's a quick fix to do this?
Seems like here is the issue:
UITouch ivars have been removed of the iOS 6 SDK headers: private API
access in UIViewAdditions breaks the build on iOS 6.