当iOS 7.1发送我的viewController时:
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView
cellForItemAtIndexPath:(NSIndexPath *)indexPath
Run Code Online (Sandbox Code Playgroud)
indexPath对象无法识别属性:item,section或row.期望值是section = 0,item = 0
调试器显示:
**indexPath NSIndexPath * 0xc000000000000016
NSObject
_indexes NSUInteger * NULL
*_indexes
_length
_reserved void * NULL
Run Code Online (Sandbox Code Playgroud)
日志报告:
(lldb) po indexPath
<NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}
(lldb) po indexPath.item
error: property 'item' not found on object of type 'NSIndexPath *'
error: 1 errors parsing expression
(lldb) po indexPath.row
error: property 'row' not found on object of type 'NSIndexPath *'
error: 1 errors parsing …Run Code Online (Sandbox Code Playgroud) 适用于MacOS的wkWebView并未公开其包含的scrollView。我的应用程序从根本上取决于WebView的scrollview。我想通过从WebView切换到wkWebView来符合Apple的建议,但是如果没有scrollview,我将无法实现。(实际上,我只需要scrollView的contentView和documentView。)
我担心苹果将来会禁用WebView并破坏多年的工作。我有什么选择吗?
我不知道关于音频或终端的蹲坐.我使用此终端命令转换wav文件以在iOS中使用:
afconvert -v -f 'caff' -d LEI16 -s 1 /users/myUserName/Desktop/hibeep.wav /users/myUserName/Desktop/hibeep.caf
Run Code Online (Sandbox Code Playgroud)
将文件添加到我的项目后,执行时没有任何反应:
NSURL * softURL = [[NSBundle mainBundle] URLForResource: @"hibeep" withExtension: @"caf"];
CFURLRef softSoundURL = (__bridge CFURLRef) softURL;
AudioServicesCreateSystemSoundID(softSoundURL, &_beepSound);
AudioServicesPlaySystemSound (_beepSound);
Run Code Online (Sandbox Code Playgroud)
然而,当我点击Project Navigator中的hibeep.caf时,声音会很好.
我在模拟器和iPad上试过这个.
有什么建议?
谢谢