草庐IT

parent_folder

全部标签

objective-c - iPhone/iPad : Unable to copy folder from NSBundle to NSDocumentDirectory

我正在尝试在我的NSBundle中复制一个包含大量图像的文件夹。我试着用这些代码来做。NSFileManager*fileManager=[NSFileManagerdefaultManager];NSError*error;NSArray*paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);NSString*documentsDirectory=[pathsobjectAtIndex:0];NSString*documentDBFolderPath=[documents

ios - 链接 Storyboard引用时出现 ibtool 错误 : The file "Info.plist" couldn't be saved in the folder *. storyboardc

我正在使用Xcode7.0beta4,最近将我的单个Main.storyboard拆分为一系列通过Storyboard引用连接的Storyboard(Xcode7中新提供)。构建时,我收到以下“InterfaceBuilderStoryboardLinkerError”:/*com.apple.ibtool.errors*/:error:Thefile“Info.plist”couldn’tbesavedinthefolder“Pages.storyboardc”.UnderlyingErrors:Description:Theoperationcouldn’tbecompleted.

ios - pod repo lint error : [! ] `<a dir>` 存储库中的 `<Parent Dir>` Pod 遇到意外版本目录 `<Parent Dir>`

我正在尝试检查我的pod规范并收到以下错误。[!]“Classes”存储库中的“Classes”Pod遇到意外版本目录“ios”。我的源文件夹设置如下:类-iOS-操作系统Podspec的源文件为:s.source_files='Classes/**/*.*'知道是什么导致了这个错误吗? 最佳答案 好吧,我今天过得很糟糕。应该使用:podspeclint. 关于ios-podrepolinterror:[!]``存储库中的``Pod遇到意外版本目录``,我们在StackOverflow上

ios - 核心数据 : parent context blocks child

我正在使用核心数据在应用程序中进行一些后台处理。后台处理是在子managedObjectContext上完成的。上下文初始化:appDelegate=UIApplication.sharedApplication().delegateas!AppDelegate//themocinappDelegateiscreatedwith.MainQueueConcurrencyTypemainThreadMOC=appDelegate.managedObjectContext!backgroundMOC=NSManagedObjectContext(concurrencyType:NSMana

ios - 核心数据 : Parent context and change propagation

我的应用程序中有以下核心数据设置:PersistentStoreCoordinator^BackgroundMOC(NSPrivateQueueConcurrencyType)^MainQueueMOC(NSMainQueueConcurrencyType)初始化代码如下:_backgroundContext=[[NSManagedObjectContextalloc]initWithConcurrencyType:NSPrivateQueueConcurrencyType];[_backgroundContextsetPersistentStoreCoordinator:self.c

iOS 照片框架 : is it possible to access photos from "People" smart folder?

我正在尝试从PHCollectionList访问PHAssetCollection。主要想法是从我的iPhone(iOS10.2)上的“People”智能文件夹中获取所有集合(和内部Assets)。要获取PHCollectionList,我正在使用当前代码:PHFetchResult*listFetchResult=[PHCollectionListfetchCollectionListsWithType:PHCollectionListTypeSmartFoldersubtype:PHCollectionListSubtypeSmartFolderFacesoptions:nil];

android - 如何在 iOS 中进行 match_parent

我习惯于在我做的地方使用Android背景:android_layout_width="match_parent"orandroid_layout_height="match_parent"如何使用xib在iOS上完成此行为? 最佳答案 1)设置匹配父View边界的subview框架。2)启用自动调整掩码,如屏幕截图所示。 关于android-如何在iOS中进行match_parent,我们在StackOverflow上找到一个类似的问题: https://s

ios - GoogleTagManager 警告 : No default container found. Container needs to be added to a container folder and added to the target

在我的Swift应用程序中尝试实现GoogleTagManagerv5时,我遇到了以下警告,这给我带来了一些麻烦:GoogleTagManagerwarning:Nodefaultcontainerfound.Containerneedstobeaddedtoacontainerfolderandaddedtothetarget.我花了比应该多的时间,而且由于我的问题的答案很难找到而且不在SO上,我决定创建这个问答,以防有人遇到和我一样的情况! 最佳答案 首先,确保您使用的是正确的GTM容器类型:它应该显示为iOS,而不是此处的iO

ios - 错误 : Fatal: Not a git repository (or any of the parent directories): . git

当我尝试将图像放入项目的Resources文件夹时,我收到了这条消息:fatal:Notagitrepository(oranyoftheparentdirectories):.git我该如何解决? 最佳答案 遇到了同样的问题。我复制了一个项目,然后尝试删除文件。如果您希望能够编辑项目,请在终端中键入gitinitfolder。这将重新初始化您文件夹中的git。 关于ios-错误:Fatal:Notagitrepository(oranyoftheparentdirectories):.

ios - 应该显式调用 willMoveToParentViewController :(UIViewController *)parent & didMoveToParentViewController:(UIViewController *)parent?

在WWDC2012session中标题为iOS上ViewController的演变-(void)willMoveToParentViewController:(UIViewController*)parent和-(void)didMoveToParentViewController:(UIViewController*)parent已被提及用于View转换的自定义容器实现。如果我没记错的话,似乎需要在-(void)removeFromSuperview之前或-(void)之后EXPLICITLY调用这些方法addSubview:(UIView*)view但是,当我将它们记录在子类实现中