在AcaniUsers,我已经创建了一个ThumbView : UIView实例网格UITableView.所有thumbViews都有宽度kThumbSize.如何检测触摸是否在它们开始的同一视图内结束?
我按照Ray Wenderlich教程如何使用Three20 Photo Viewer非常清楚并且工作得很好,我的问题是标题,如何在缩略图视图中启动Three20 Photo Viewer?
我非常感谢任何指导或帮助.
我的URL地图如下:
[map from:@"tt://webPage/(initWithPage:)" toSharedViewController:[WebPageController class]];
Run Code Online (Sandbox Code Playgroud)
并在 WebPageController
- (id) initWithPage:(WebPage)page
{
if (self = [super init])
{
...
Run Code Online (Sandbox Code Playgroud)
然后我在我的代码中多次调用了url
tt://webPage/1
tt://webPage/2
tt://webPage/1 (still called the initWithPage: everytime, not cached)
Run Code Online (Sandbox Code Playgroud)
为什么它不是缓存,因为它是一个SharedViewController?
我想要的是在我的viewController中显示一些简单的文本,并自动进行超链接.当用户点击链接时,我希望控件以某种方式进行回调,我可以使用URL执行某些操作.我怎样才能做到这一点?
我已经查看了TTCatalog几个小时了.我也尝试查看three20的源代码以及查看堆栈跟踪.没有帮助.我无法弄清楚我的应用程序如何对URL的点击做出反应.有什么提示吗?
我正在使用Three20库中的TTPhotoViewController子类来显示来自Web位置的图像.图像加载正常,但导航栏和工具栏显示默认色调.我正在使用带有自定义色调的导航栏(在MainWindow.xib中设置)
我试过这些东西让它显示黑色半透明条,但这些似乎都没有效果.
有人可以告诉我为什么会发生这种情况以及如何解决这个问题?谢谢.
我下载了three20库:
我打开了这个库附带的TTCatalog示例项目:
http://img16.imageshack.us/img16/3183/screenshot20100302at752.png
如您所见,有很多Localizable.strings文件.
当我打开iPhone模拟器并在设置中将其语言更改为例如法语时,按钮上的文本仍保留为英语:
http://img69.imageshack.us/img69/9775/screenshot20100302at812.png
我已经检查过法语的Localization.strings中的文本"See All"肯定有相应的条目.
为什么以及使用Localizable.strings文件的步骤是什么?
(此示例项目未附带任何nib/xib文件)
编辑:
在Info.plist中添加以下XML后:
...
<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>
...
Run Code Online (Sandbox Code Playgroud)
它现在有效!
我有一个TTableView.此表中的项目映射到URL,因此当我单击某个项目时,将显示另一个视图,其中包含有关此项目的信息.所有这些信息都是类的属性.那么,我如何构建我的TTableTextItem URL以便将包含信息的类传递给负责显示这些信息的视图?
提前致谢.
嗨,我得到一个xcode"没有这样的文件或目录":
#import "Three20Core.h"
Run Code Online (Sandbox Code Playgroud)
我还注意到当我输入#import语句时它识别并帮助自动完成"Three20Core.h"文件,但是当我编译时我得到了错误?
这是Three20库(来自Facebook)的主库文件头.所以我的three20目录与我的app目录处于同一级别.在Xcode应用程序目标构建设置中:
任何错误的建议?
在一个空的Rotation 上添加Three20 TTPhotoViewControllerUIWindow就像一个魅力.
但是,当我移动TTPhotoViewController从UINavigationController内部创建时,UITabBarController它根本不会旋转.
我确保每个功能都返回YESshouldAutorotateToInterfaceOrientation.
Three20 Photo Gallery是否可以在旋转的UITabBarController侧工作?
[[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"]];
Run Code Online (Sandbox Code Playgroud)
TTScrollView但导航栏不旋转.
更新2:
我已经进行了子类化UITabBarController和UINavigationController覆盖shouldAutorotateToInterfaceOrientation,但它没有帮助.
我只在我的应用程序中使用Three20作为一个画廊.
当我.. : TTThumbsViewController从另一个视图中推送我时,导航栏不是我想要的颜色(根据我的应用程序的其余部分).我已TTDefaultStyleSheet根据此stackoverflow QA设置了一个.因为我只使用TTThumbsViewController,我有什么特别的事吗?
拇指视图也是在顶部创建了额外的空间,就好像它为导航控制器留出了空间,而不知道那里已经存在.我如何告诉TTThumbsViewController使用现有的uinavigationcontroller?或者表现得好像?
MYThumbsViewController *mYThumbsViewController = [MYThumbsViewController alloc];
[self.navigationController pushViewController:mYThumbsViewController animated:YES];
Run Code Online (Sandbox Code Playgroud)
问题描述的图形:
替代文字http://www.imgplace.com/img594/1309/39testapp.png
谢谢!
three20 ×10
iphone ×8
ios ×3
objective-c ×3
xcode ×2
cocoa ×1
localization ×1
rotation ×1
thumbnails ×1
touchesbegan ×1
uitouch ×1
uiview ×1
xcode4 ×1