我米使用pods链接像图书馆AfNetworking,facebook等等,并在其伟大的工作release模式,但我想通过调试检查变量的值,但它显示了所有的变量零在释放模式.我试图debug通过编辑模式在模式下运行,但它无法编译显示各种库未找到错误.
编辑我已经尝试更新架构.....但这没有帮助. 调试模式下的错误日志
ld: warning: directory not found for option '-L/Users/madept/Desktop/personally/Pods/build/Debug-iphoneos'
ld: warning: ignoring file /Users/madept/Desktop/personally/libCloudinary.a, missing required architecture x86_64 in file /Users/madept/Desktop/personally/libCloudinary.a (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFHTTPRequestOperation", referenced from:
objc-class-ref in ZRAPIClient.o
"_OBJC_CLASS_$_AFHTTPRequestSerializer", referenced from:
objc-class-ref in ZRAPIClient.o
"_OBJC_CLASS_$_AFJSONResponseSerializer", referenced from:
objc-class-ref in ZRAPIClient.o
"_OBJC_CLASS_$_BITHockeyManager", referenced from:
objc-class-ref in ZRAppDelegate.o
"_OBJC_CLASS_$_CLCloudinary", referenced from:
objc-class-ref in ZRMediaManager.o
"_OBJC_CLASS_$_CLTransformation", referenced from:
objc-class-ref in ZRMediaManager.o
"_OBJC_CLASS_$_DDFileLogger", referenced from: …Run Code Online (Sandbox Code Playgroud) 我使用UIPageViewController卷曲效果来启用水平滑动黑白视图控制器。但是内容大小大于视图的高度。所以我UIScrollView在视图控制器中添加了支持垂直滚动。我在视图控制器中添加了此代码来设置内容滚动视图的大小-
-(void)viewDidLayoutSubviews
{
[self.scrollView setContentSize:CGSizeMake(100, 900)];
}
Run Code Online (Sandbox Code Playgroud)
问题是,当视图控制器加载到UIPageViewController滚动视图中时,当我尝试滚动它时,它最初不会滚动,但一旦我加载下一个控制器(通过水平滑动)它就会滚动并返回到第一个视图控制器。我做错了什么?任何帮助或建议将不胜感激。