小编mic*_*ael的帖子

如何制作iOS资产包?

我在我评估的iOS项目中看到了一个自定义资产包,所以至少我知道它是可能的.

我的问题是我使用的CATiledLayer对于给定的图像大约有22,000个图块,编译需要很长时间(半小时清理版本,常规版本需要5-10分钟).因此,我希望获取所有图像并制作自定义包以使其可移植,并且希望每次都不会重新编译到应用程序包中.

我该怎么做?我检查了文档,但没有看到如何实际创建包的解释.

bundle assets ios

55
推荐指数
5
解决办法
5万
查看次数

仪器在启动后2秒内失败

应用程序没有崩溃,它一直很好.似乎发生了正确的应用实际上在屏幕上显示的东西.这是Xcode的错误:

无法在'Michael的iPad(v4.3.1)上启动'iOS'的仪器守护程序'((null))

请重新连接设备.

这就是设备控制台所说的:

5月16日17:54:58未知锁定[17]:01237000 handle_connection:无法接收来自Instruments的USB消息#22.杀戮连接5月16日17:54:58未知com.apple.mobile.lockdown [17]:收到安全消息超时!

不知道这里发生了什么,我已经尝试删除设备上的所有配置文件,并将其从用于开发的设备中删除.

xcode instruments ipad

5
推荐指数
1
解决办法
1536
查看次数

Apple Mach-O Librarian(libtool)错误,没有特定错误

我以前不得不处理大量的libtool错误,但我真的不知道如何处理一个没有给我提示的错误.

这是完整的错误:

 Libtool /Users/programmingstation7/Library/Developer/Xcode/DerivedData/RZFramework-fglhxeoyynfgoxgrgpqwrywuaexk/Build/Products/Debug-iphoneos/libRZFramework.a normal armv7
                        cd /Users/programmingstation7/Documents/CleanedFramework
                        setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
                        setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
                        /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool -static -arch_only armv7 -syslibroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/programmingstation7/Library/Developer/Xcode/DerivedData/RZFramework-fglhxeoyynfgoxgrgpqwrywuaexk/Build/Products/Debug-iphoneos -L/Users/programmingstation7/Documents/CleanedFramework/.. -filelist /Users/programmingstation7/Library/Developer/Xcode/DerivedData/RZFramework-fglhxeoyynfgoxgrgpqwrywuaexk/Build/Intermediates/RZFramework.build/Debug-iphoneos/RZFramework.build/Objects-normal/armv7/RZFramework.LinkFileList -lxml2 -ObjC -all_load -framework CoreData /Users/programmingstation7/Library/Developer/Xcode/DerivedData/RZFramework-fglhxeoyynfgoxgrgpqwrywuaexk/Build/Products/Debug-iphoneos/libarc.a /Users/programmingstation7/Library/Developer/Xcode/DerivedData/RZFramework-fglhxeoyynfgoxgrgpqwrywuaexk/Build/Products/Debug-iphoneos/libEISRenderHelpful.a -framework CFNetwork -framework MobileCoreServices -framework Security /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/libxml2.dylib /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/libz.dylib -framework CoreLocation -framework CoreText -framework UIKit -framework Foundation -framework CoreGraphics -framework MediaPlayer -framework QuartzCore -framework AVFoundation -framework OpenGLES -framework MapKit -framework MessageUI -framework SystemConfiguration -framework EventKit -framework EventKitUI -o /Users/programmingstation7/Library/Developer/Xcode/DerivedData/RZFramework-fglhxeoyynfgoxgrgpqwrywuaexk/Build/Products/Debug-iphoneos/libRZFramework.a

                        Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool failed with exit code 1
Run Code Online (Sandbox Code Playgroud)

我正在使用链接器标志-lxml2 -ObjC -all_load

有关导致无异常libtool失败的原因的任何想法? …

xcode linker mach-o

5
推荐指数
1
解决办法
6162
查看次数

UITapGestureRecognizer仅适用于初始化阶段可见的项目

所以,我遍历一个循环并创建UIView包含UIImageViews的s(这样我可以有选择地显示任何给定的部分).这些UIView都存储在一个UIScrollView.

UIView在我创建它们的循环中为s 添加了手势识别器.

当我运行程序时,只有最初在其中可见的项目才能UIScrollView识别其手势.如果我滚动到以前隐藏的项目然后点击它们,则根本不会发生任何事情(手势永远不会被识别或尝试).

初始化代码:

UITapGestureRecognizer* gestRec = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleGesture:)];
  gestRec.delegate = self;

  [imageholder addGestureRecognizer:gestRec];
Run Code Online (Sandbox Code Playgroud)

处理手势的代码:

- (void)handleGesture:(UIGestureRecognizer *)gestureRecognizer
{
 float count = [self._imageHolders count];
 NSLog(@"handling gesture: %f",count);
 while(count--){
  UIView* object = (UIView*) [self._imageHolders objectAtIndex:count];
 // NSLog(@"Whats going on: %@, %@, %b",object,gestureRecognizer.view, object == gestureRecognizer.view);
  if(object == gestureRecognizer.view){
   object.alpha = .1;
   count = 0;
  }
 // [object release];
 }
}
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

----更新:

我已经探索了各种可用的功能scrollview,UIView …

objective-c uigesturerecognizer ios

2
推荐指数
1
解决办法
2885
查看次数