three20

Are there libraries similar to the Three20 Project for Android?

北战南征 提交于 2019-12-21 03:55:09
问题 The Three20 project is really nice for building iPhone apps quickly using common libraries: https://github.com/facebook/three20 Is there anything like this for Android? 回答1: Not exactly, but working at a company with a partially three20 based iPhone app developed in parallel with the Android version, I think about 50% of what 320 does you get right out of the platform on Android, minus a little polish. For example, 320's Navigator and TextEditor are basically baked in on Android - the

Strange layout issue on 3GS device with iOS 4.2.1 - Compiled with iOS 5

我与影子孤独终老i 提交于 2019-12-20 14:42:02
问题 We had a strange bug report from a user who has iOS 4.2.1 on an iPhone 3GS. A lot of the UITextLabels in the app are offset at strange locations. Has anyone else come across this issue. The app is laid out correctly on all devices we have tested on and we have only heard of this issue from 2 users out of over 100,000. This could be related to Three20 styles. 回答1: We hit exactly the same issue with our layouts. We are not using Three20 though. There is a known issue when building with iOS 5.0

Three20 : how to pass a class of objects between 2 views

我们两清 提交于 2019-12-20 10:48:34
问题 I have a TTableView. The items in this table a mapped to an url, so that when I click on an item, another view appear with informations about this item. All these informations are attributes of a class. So, how can I build my TTableTextItem URL in order to transmit the class containing informations to the view responsible for the display of these informations ? Thanks in advance. 回答1: One way of doing it is to use a TTURLAction. When the user selects a row in your table, which will call your

Three20 Photo Scroller alternative?

[亡魂溺海] 提交于 2019-12-20 09:45:29
问题 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

How to add a global right bar button (UINavigationController) in Three20's AppDelegate

我怕爱的太早我们不能终老 提交于 2019-12-19 05:09:05
问题 I want to add a global right bar button in the global AppDelegate so all my view controllers will have this button automatically. I added in the AppDelegate navigator.window.rootViewController.navigationController.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Test", @"") style:UIBarButtonItemStyleBordered target:self action:@selector(showTest)] autorelease]; Of course the above code is not working..any problem with the code above? 回答1: Well, I

Just how to you use TTStyledTextLabel?

孤街醉人 提交于 2019-12-18 10:46:40
问题 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? 回答1: Hard

How to use Three20 TTMessageController?

耗尽温柔 提交于 2019-12-18 03:47:01
问题 I am new to iOS development. For my little messenger I need a contact picker and a textarea. So the TTMessageController of the Three20 project seems to be very interesting. However I am not really sure how to implement it. For now I have three controllers, one for each view. I want to have a contact picker and textarea on the third view. I have set up three20 successfully. But how do I use it? Can I use it through interface builder or just by code? What would be an approach in my case? Before

Keyboard obscures the entry field

∥☆過路亽.° 提交于 2019-12-13 19:58:16
问题 When i want to put text into my UITextField, keyboard shows at the top of it, and cover the field. How to prevent this? I've just read: this solution but i have no idea where to resize? It is a good way? My code is: UITextField * passwordTextField = [[[UITextField alloc] init] autorelease]; passwordTextField.keyboardType = UIKeyboardTypeDefault; passwordTextField.delegate = self; passwordTextField.placeholder = NSLocalizedString(@"somestr", @""); passwordTextField.secureTextEntry = YES; [

How to launch a TTTableView based view with TTLauncherView?

走远了吗. 提交于 2019-12-13 19:42:41
问题 I'm very newbie with Three20. I'm trying to make an TTLauncherView based interface, without success for now. My LauncherView contains a button, mapped to an URL. When I click on this button, I want a TTTableView based to be displayed on screen. But I have nothing. Here is a piece of my AppDelegate code : [map from:@"tt://rank" toViewController:[RankController class]]; And the LauncherView code (a piece, too) : launcherView.pages = [NSArray arrayWithObjects: [NSArray arrayWithObjects: [[

How to resize TTTableSubtitleItemCell

拈花ヽ惹草 提交于 2019-12-13 06:26:53
问题 I'm using the three20 framework and added a TTListDataSource, but I want to change the hight of each Cell (optimal would be the high the text takes inside, so that nothing is cut). I changed some values at Three20UI/TTTableSubtitleItemCell.h to change the inner high is no problem, but the dividing line is not accordingly regards 回答1: TTTableViewCell has a class method, that calculates the height of each table row. It's called tableView:rowHeightForObject: . If you are using a custom subclass