我的视频没玩
// _itemFailedToPlayToEnd:
{
kind = 1;
new = 2;
old = 0;
}
Run Code Online (Sandbox Code Playgroud)
我的网址是
http://leuipe.fr.feedportal.com/c/3265/f/43169/s/2f1abb6/sc/35/l/0Lvideo0Blequipe0Bfr0Cvideo0Cd3b6e1d4cccs0Bhtml/story.htm
Run Code Online (Sandbox Code Playgroud)
我的代码是
movieURL=[NSURL URLWithString:[_dic valueForKey:kRssLink]];
NSLog(@"%@",movieURL);
player = [[MPMoviePlayerController alloc] init];
[player setContentURL:movieURL];
[player.view setFrame:CGRectMake (0, 100, 320, 476)];
[self.view addSubview:player.view];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayBackDidFinish:) name:MPMoviePlayerPlaybackDidFinishNotification object:player];
[player play];
Run Code Online (Sandbox Code Playgroud) 我想在iCloud中存储.sqlite数据库文件.我使用下面这段代码但是当我登录我的icloud帐户并在"iCloud Drive"中看到时,该驱动器中没有任何文件.
我只想在icloud中使用我的Apps Documents文件夹的.sqlite文件并从该备份恢复.
我从xcode打开了功能的iCloud选项.
代码:
NSString *dataFile = [self getDBPath];
_documentURL = [NSURL fileURLWithPath:dataFile];
NSFileManager *filemgr = [NSFileManager defaultManager];
// [filemgr removeItemAtURL:_documentURL error:nil];
// _ubiquityURL = [[filemgr URLForUbiquityContainerIdentifier:nil] URLByAppendingPathComponent:@"Documents"];
_ubiquityURL = [[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:nil];
_ubiquityURL = [_ubiquityURL URLByAppendingPathComponent:@"Documents"];
if ([filemgr fileExistsAtPath:[_ubiquityURL path]] == NO)
[filemgr createDirectoryAtURL:_ubiquityURL
withIntermediateDirectories:YES
attributes:nil
error:nil];
_ubiquityURL = [_ubiquityURL URLByAppendingPathComponent:@"imageDB.sqlite"];
// Search for document in iCloud storage
_metadataQuery = [[NSMetadataQuery alloc] init];
[_metadataQuery setPredicate:[NSPredicate predicateWithFormat:@"%K LIKE 'imageDB.sqlite'",NSMetadataItemFSNameKey]];
[_metadataQuery setSearchScopes:[NSArray
arrayWithObjects:NSMetadataQueryUbiquitousDocumentsScope,nil]];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(metadataQueryDidFinishGathering:) name: NSMetadataQueryDidFinishGatheringNotification …Run Code Online (Sandbox Code Playgroud) 我有两个按钮.
滚动视图中还有两个屏幕,一个是UIView绿色,另一个是UIImageApple徽标.两者都显示正常,但我只是采取这样的屏幕截图.
当我点击注册按钮然后在滚动视图中显示UIView那是绿色视图!
当我点击图像按钮时,它显示的UIImageView是Apple徽标.我拍摄的屏幕截图就像滚动视图滚动和绿色视图是uiview,第二个背后是包含图像的图像视图
//help me
-(IBAction)registrationClick:(id)sender
{
NSLog(@"mayank");
CGRect frame;
frame.origin.x = self.scrollView.frame.size.width * self.pageControl.currentPage;
frame.origin.y = 0;
frame.size = self.scrollView.frame.size;
[self.scrollView scrollRectToVisible:frame animated:YES];
pageControlBeingUsed = YES;
}
Run Code Online (Sandbox Code Playgroud)
