three20

Unable to delete rows in table using Three20

会有一股神秘感。 提交于 2019-12-12 09:52:43
问题 I've got a button that toggles setEditing on a TTTableView. Previously I'd been using a "regular" UITableView and the following method to actually delete the data, but I don't see anything similar in the Three20 classes and using my method doesn't get called when the delete button is pressed on a row. (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { //do work} I must be missing something but I

How to change the color of the title in TTLauncherItem?

走远了吗. 提交于 2019-12-12 07:38:15
问题 I am having a lot of trouble trying to change the color in the TTLauncherItem, because the default gray color does no work with my background. Any ideas? 回答1: Here's what I used to change the text color of TTLauncherItem from the default gray color to black (looks better on a white background): (1) Create a Stylesheet that inherits from TTDefaultStyleSheet : Stylesheet.h: @interface StyleSheet : TTDefaultStyleSheet {} @end Stylesheet.m: // Style for TTLauncherItems - (TTStyle*)launcherButton:

three20 and iOS 6 not working

时光毁灭记忆、已成空白 提交于 2019-12-12 07:34:22
问题 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. 回答1: This patch on GitHub seems like it fixes this problem when using Three20 under iOS 6. Basically the patch

TTTableViewController showMenu:forCell: example

青春壹個敷衍的年華 提交于 2019-12-12 03:40:08
问题 I'm looking for an example of how to create an animated row menu like the Facebook & twitter apps for iphone have. I see the TTTableViewController has the showMenu:forCell: method, but I have not been able to find any examples of how to use it. Specifically in the context of a URL Navigator selector, but any example would be great. 回答1: Were you able to find an example on this. I, too, was stuck with the same problem as you did. I couldn't find an example of using TTTableViewController

Better NavigationController transition in Three20 using TTURLAction

风格不统一 提交于 2019-12-12 02:47:42
问题 I am using the following codes to switch controller in my Three20 App TTURLAction * urlAction = [TTURLAction actionWithURLPath:url]; [urlAction applyAnimated:YES]; CATransition * transition = [CATransition animation]; transition.duration = 0.4f; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type = kCATransitionReveal; transition.subtype = kCATransitionFromRight; [self.navigationController.view.layer addAnimation:transition

UIDeviceRGBColor leak - how to fix?

放肆的年华 提交于 2019-12-11 21:25:10
问题 I am using the three20 library (not sure if this is the cause) and am getting a leak when going back and forth between two views of a navigation controller. More details of one of the leaks: The only think I can think of is that I show the toolbar when it pushes the second view onto the stack: /** * View is going to appear * * @version $Revision: 0.1 */ - (void) viewWillAppear:(BOOL)animated { [self.navigationController setToolbarHidden:NO animated:animated]; [super viewWillAppear:animated];

refresh TTThumbsViewController on a buttonClick in Three20

烂漫一生 提交于 2019-12-11 19:00:26
问题 I have this view having Thumbnails and certain set of buttons. I am using TTThumbsViewController to render this view and MockDataSource (provided in TTCatalog) to store images. my datasource is dynamic and changes everytime in some period of time. Now what I want to do is refresh(reload) the thumbnails after clicking a button on the same Thumbnails screen is there any way to achieve this??? 回答1: TTTHumbsViewController inherits from TTTableViewController which inherits from

how to change TTNavigator (for a web url) bottom bar color?

我只是一个虾纸丫 提交于 2019-12-11 16:03:07
问题 Here is a code i made to open a website via TTNavigator- - (IBAction)btnTemp_Click{ TTNavigator* navigator = [TTNavigator navigator]; navigator.supportsShakeToReload = YES; navigator.persistenceMode = TTNavigatorPersistenceModeAll; [navigator openURLAction:[[TTURLAction actionWithURLPath:@"http://www.google.com"] applyAnimated:YES]]; } and here i was able to manage its navigation bar items, color etc- - (void)addSubcontroller:(UIViewController *)controller animated:(BOOL)animated transition:

TTStyledTextLabel offset between link and regular text when changing from default font

痞子三分冷 提交于 2019-12-11 11:56:40
问题 I'm using Three20 TTStyledTextLabel and when I change the default font (Helvetica) to something else it creates some kind of height difference between links and regular text The following code demonstrate my problem: #import <Three20/Three20.h> @interface TestController : UIViewController { } @end @implementation TestController -(id)init{ self = [super init]; TTStyledTextLabel* label = [[[TTStyledTextLabel alloc] initWithFrame:CGRectMake(0, 0, 320, 230)] autorelease]; label.text =

Weird three20 graphics bug in thumb viewer when running in release mode

冷暖自知 提交于 2019-12-11 06:44:18
问题 I've just encountered the strangest problem with the three20 thumbs viewer. When running in debug, my TTThumbsViewController works completely normally, however if I switch to release mode (ad-hoc and on the live app store version ), I get some pretty weird graphical glitches. For example, the loading view of the thumb controller: http://img.skitch.com/20120125-kugx5diqbs8sttnxatrppf4rjg.jpg And then all my thumbnails get squashed: http://img.skitch.com/20120125-mi3mpkr1j1s9f79fdf9r3krjhs.jpg