iPhone 的页面控制错误

标签 iphone ios

我尝试使用此代码,但它不起作用。 http://developer.apple.com/library/ios/#samplecode/PageControl/Introduction/Intro.html

Ld "/Users/waitonza/Library/Developer/Xcode/DerivedData/Dr_Ngoo-aanknxmuodcgjicaigxevljxokeq/Build/Products/Debug-iphonesimulator/Dr Ngoo.app/Dr Ngoo" normal i386 cd /Users/waitonza/Desktop/Project/Dr-Ngoo setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv 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 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/waitonza/Library/Developer/Xcode/DerivedData/Dr_Ngoo-aanknxmuodcgjicaigxevljxokeq/Build/Products/Debug-iphonesimulator -F/Users/waitonza/Library/Developer/Xcode/DerivedData/Dr_Ngoo-aanknxmuodcgjicaigxevljxokeq/Build/Products/Debug-iphonesimulator -filelist "/Users/waitonza/Library/Developer/Xcode/DerivedData/Dr_Ngoo-aanknxmuodcgjicaigxevljxokeq/Build/Intermediates/Dr Ngoo.build/Debug-iphonesimulator/Dr Ngoo.build/Objects-normal/i386/Dr Ngoo.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework QuartzCore -framework SystemConfiguration -lsqlite3.0 -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/waitonza/Library/Developer/Xcode/DerivedData/Dr_Ngoo-aanknxmuodcgjicaigxevljxokeq/Build/Products/Debug-iphonesimulator/Dr Ngoo.app/Dr Ngoo"

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_PagingScrollViewController", referenced from: objc-class-ref in DrNgooAppDelegate.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

解决方案与我们在评论中讨论的相同:

我检查了你的项目,它没有 PagingScrollViewController。您可能是从文件夹外部引用它。也将它添加到项目中,它应该可以正常工作!

@CodaFi 也有正确答案,所以也给他 +1!

关于iPhone 的页面控制错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9866531/

相关文章:

iphone - 核心数据切片绘图样式

iphone - 从图像中检索 RGBA 值

ios - 创建开发人员配置文件但显示不合格

iphone - 在应用程序购买拒绝原因是什么意思?

ios - 未解析的标识符 - SKErrorPaymentCancelled

ios - 核心数据 : Data does not store to database (swift)

iphone - 如何使 UITableView 中的单元格可移动但不可删除?

ios - 如何区分 tableViewCell 中的按钮,在 tableView 中重复使用?

ios - 使用 ssh 将输入发送到 iphone 应用程序并打开

ios - 找不到接受提供的参数 SWIFT 的 “init” 的重载