three20

TTThumbView/TTPhotoView no autorotation

*爱你&永不变心* 提交于 2019-12-07 18:09:07
问题 In my app I try to use the TTphotoView, so in a ViewController I push the TTphotoView with my navigationController like this: if(self.photoViewController == nil { PhotoViewController *viewController = [[PhotoViewController alloc] init]; self.photoViewController = viewController; viewController.hidesBottomBarWhenPushed = YES; [viewController release]; } [self.navigationController pushViewController:self.photoViewController animated:YES]; [self.navigationController

Three20 framework, how to change default row height TTTableView?

血红的双手。 提交于 2019-12-07 15:39:53
问题 I am using a TTListDataSource to populate a TTTableViewController. This is the code I am using to populate the TTListDatSource items array: NSString *text = [NSString stringWithFormat:@"<b>%@</b><br/>%@", someObject.title, someObject.text]; TTStyledText *styledText = [TTStyledText textFromXHTML:text lineBreaks:YES URLs:YES]; [items addObject:[TTTableStyledTextItem itemWithText:styledText]]; I would like to change the default row height the TTTableView is using, currently 2 lines height. any

TTSpeechBubbleShape in Three20 only draws “speech” triangles top and bottom

无人久伴 提交于 2019-12-07 12:29:46
问题 So I am using the Three20 library for an iPhone app, and want to use the TTSpeechBubbleShape style for a view. But the triangle doesn't seem to want to draw on the left or right sides. I see in the source that it's a lot of geometry and was wondering if anyone had tackled this or knew how to fix it. 回答1: You might be looking for TTRoundedLeftArrowShape and TTRoundedRightArrowShape , which would look like a standard Back iPhone button. 回答2: I looked at the source and filled in the missing

three20:The three20 framework of the source code error?

纵然是瞬间 提交于 2019-12-07 04:56:30
Ld /Users/guxinchao1/Desktop/three20/Build/Products/Debug-iphonesimulator/CoreUnitTests.octest/CoreUnitTests normal i386 cd /Users/guxinchao1/Desktop/three20/src/Three20Core export IPHONEOS_DEPLOYMENT_TARGET=3.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator

Three20 and iOS 4

∥☆過路亽.° 提交于 2019-12-06 14:30:18
I'm trying to complie my app for iOS 4. It includes Three20. I've set the base SDK to "iPhone Device 4.0" and the Deployment Target to "iPhone OS 3.0" but I get this message: "_OBJC_CLASS_$_TTURLRequestModel", referenced from: _OBJC_CLASS_$_MockPhotoSource in MockPhotoSource.o What do I have to do? I think this thread explains most of the problems. http://groups.google.com/group/three20/browse_thread/thread/90a57d469dfcc32d/85750d0c9b7c79de?lnk=gst&q=ios4#85750d0c9b7c79de Also the updated code is available here.. http://github.com/ECP/three20 Hope this will help. Thanks. I had the same problem

How to change the size of the grid of TTThumbsViewController

我只是一个虾纸丫 提交于 2019-12-06 11:13:47
I'm using the Three20 Photo Gallery and wondered if it's possible to have two different grid sizes in two different galleries. So in Gallery one I use the standard size (up to 4x4 thumbs) and in the other I only want a 2x2 gallery size. Is that possible and if yes how (I suppose subclassing comes into play)? I would really appreciate some code samples. Thanks a lot. I did the same thing and my solution was like this 1, Extend TTThumbsDataSource and override (NSInteger)columnCount { // CGFloat width = TTScreenBounds().size.width; // return round((width - kThumbSpacing*2) / (kThumbSize

Static library dependency compiles in simulator on Xcode 3.2.3, fails on device

女生的网名这么多〃 提交于 2019-12-06 10:31:21
问题 Upgrading to XCode 3.2.3 and iPhone 3.2/4.0 SDK has introduced a strange bug into my build process. I have a static library, Compton, which itself depends on three20. I build Compton as a dependency of the client apps that it powers. When I compile Compton as its own project in either simulator or device mode, 3.2 or 4.0 SDK, everything compiles fine, no errors. When I compile a client app that references Compton using the 3.2 or 4.0 SDK, simulator, targeting the iPhone or iPhone / iPad on 3

Optimizing binary app size on iPhone / iPod touch

家住魔仙堡 提交于 2019-12-06 04:35:37
I know that a user can only download up to 20MB over 3G, and my build/Release-iphoneos is showing my app at 26MB. I'm linking against the three20 iPhone framework. Is this the final size that will count against the 20MB max when submitted to the App Store? Is there anything I can do squeeze this even lower? (I'm using a bunch of PNG's converted from JPEG, so I guess I can lower the quality they're being converted at.) Thanks. It may be that you're actually fine. What actually matters is the app size once it's been compressed, as that's how Apple sends the apps as well. Right(control)-click on

TTThumbView/TTPhotoView no autorotation

纵然是瞬间 提交于 2019-12-06 03:52:00
In my app I try to use the TTphotoView, so in a ViewController I push the TTphotoView with my navigationController like this: if(self.photoViewController == nil { PhotoViewController *viewController = [[PhotoViewController alloc] init]; self.photoViewController = viewController; viewController.hidesBottomBarWhenPushed = YES; [viewController release]; } [self.navigationController pushViewController:self.photoViewController animated:YES]; [self.navigationController dismissModalViewControllerAnimated:YES] the problem is when the user rotate the device on the PhotoViewController nothing happen.

Unable to delete rows in table using Three20

老子叫甜甜 提交于 2019-12-06 01:05:52
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 can't figure out where. It seems like setEditing in TTTableViewController isn't connected up to anything.