注意:这仅适用于OS X Installer程序包,提交到Mac App Store的程序包遵循不同的规则.
由于Mountain Lion的Gatekeeper,我终于不得不把我的PackageMaker构建脚本放在谷仓后面并拍摄它.PackageMaker已经从Xcode中删除并转移到"Xcode的辅助工具"中,所以希望它很快就会被遗忘.
现在的问题是我怎么用pkgbuild,productbuild和pkgutil来代替它?
我尝试在UIImage上得到圆角,到目前为止我读到的,最简单的方法是使用蒙版图像.为此我使用了TheElements iPhone Example中的代码和我找到的一些图像大小调整代码.我的问题是resizedImage总是为nil而且我没有找到错误...
- (UIImage *)imageByScalingProportionallyToSize:(CGSize)targetSize
{
CGSize imageSize = [self size];
float width = imageSize.width;
float height = imageSize.height;
// scaleFactor will be the fraction that we'll
// use to adjust the size. For example, if we shrink
// an image by half, scaleFactor will be 0.5. the
// scaledWidth and scaledHeight will be the original,
// multiplied by the scaleFactor.
//
// IMPORTANT: the "targetHeight" is the size of the space
// we're drawing into. The "scaledHeight" is …Run Code Online (Sandbox Code Playgroud) 文档+[NSThread detachNewThreadSelector:toTarget:withObject:]说:
对于非垃圾收集的应用程序,该方法
aSelector负责为新分离的线程设置自动释放池,并在该池退出之前释放该池.
我的问题是,我是否需要NSAutoreleasePool在我的-[NSOperation main]方法覆盖中创建自己的方法,还是创建NSAutoreleasePool处理方法NSOperation?
我想摆脱在webview中聚焦文本字段时出现的键盘顶部的栏.我们还有其他一些方法可以解决这个问题,这是多余的,也是不必要的.
webview键盘栏http://beautifulpixel.com/assets/iPhone_Simulator-20100120-152330.png
如果您遇到此问题,请务必访问https://bugreport.apple.com并复制rdar:// 9844216
我正在创建一个PDFViewer应用程序.我已将PDFViewer的autoScale属性设置为true,以便视图扩展到屏幕的宽度.适用于大型PDF文档.但是当文档是单页文档时,页面会自动向下滚动到页面的末尾,而不是从头开始.我只是无法理解它的根本原因.我在这里错过了什么?
是否可以通过应用程序访问崩溃日志?last.fm客户端今天向我展示了"我们发现了一个崩溃日志",并提供了发送它的选项,所以我认为它必须是可能的.
在我的性能测试期间,我发现Apple在iPhone 3.0上提供的SQLite版本明显快于我自编的合并SQLite版本.所以我的问题是,有没有办法找出Apple使用的编译选项?
是否有测试应用程序打印出所有默认设置的pragams和sqlite3_config设置?
在使用Instruments测试我的应用程序后,我意识到我使用的当前CSV解析器具有巨大的内存占用.有人建议内存占用少吗?
我使用NSTask来运行我的帮助应用程序.99%的我的客户系统一切正常,但有两个回到我这让我知道它没有.其中一个非常好,让我可以调查每个远程桌面的问题.
我为StandardOutput/StandardError 尝试了很多不同的NSPipe/NSFileHandle组合,以确保问题与填充这些缓冲区无关.例1和2.我的猜测是它没有相关性,因为它在很多系统上工作正常,并且_dyld_start在应用程序生命周期中为时尚早,以填满StandardOutput/StandardError.
关于这个问题的其他说明:
活动监视器中的过程示例的屏幕截图:
任何线索或调试技巧,以确定帮助器卡在_dyld_start中的原因是受欢迎的!
文档说The signature is a PKCS #7 detached signature of the manifest file但是如何使用 openssl 做到这一点?
对于 Passbook,我找到了这些命令:
openssl pkcs12 -passin pass:test -in ./Certificates.p12 -clcerts -nokeys -out ./certificate.pem
openssl pkcs12 -passin pass:test -in ./Certificates.p12 -nocerts -out ./key.pem
openssl smime -passin pass:test -binary -sign -signer ./certificate.pem -inkey ./key.pem -in ./pushPackage.raw/manifest.json -out ./pushPackage.raw/signature xs-outform DER
Run Code Online (Sandbox Code Playgroud)
还尝试使用 WWDR 证书:
openssl smime -passin pass:test -binary -sign -certfile ~/Downloads/AppleWWDRCA.cer -signer ./certificate.pem -inkey ./key.pem -in ./pushPackage.raw/manifest.json -out ./pushPackage.raw/signature xs-outform DER
Run Code Online (Sandbox Code Playgroud)
并将其压缩为:
zip -r ../example.zip . -x …Run Code Online (Sandbox Code Playgroud) safari notifications openssl push-notification apple-push-notifications
cocoa ×5
iphone ×5
cocoa-touch ×4
ios ×2
objective-c ×2
csv ×1
dyld ×1
keyboard ×1
macos ×1
nstask ×1
openssl ×1
packagemaker ×1
pdfview ×1
pkgbuild ×1
productbuild ×1
safari ×1
sqlite ×1
uiwebview ×1
xcode ×1