xcode5

Stream large movie with credential through MPMoviePlayer

我的未来我决定 提交于 2020-01-04 06:28:21
问题 I've been trying to stream a movie from a url that is protected. I can download the movie then play it, but the movie is too long so this is annoying. Here is my code: -(MPMoviePlayerController *)moviePlayerController { NSURL *url = [NSURL URLWithString:@"http://ABcDE.com/secret/Movie.mov"]; _moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url]; NSURLCredential *credential = [[NSURLCredential alloc] initWithUser: @"user" password: @"password" persistence:

iOS simulator reverts to iOS7 when I'm trying to run 6

自作多情 提交于 2020-01-04 06:15:58
问题 I'm having a weird situation in XCode 5 that I can't explain. My project's build target is iOS 6.1. I go into the simulator menu and change device to iPhone Retina (4-inch) / iOS 6.1. Should run in iOS6, yes? When I hit run, the simulator immediately flips to iOS7 and runs the app in that instead. I've tried deleting the app from the sim, cleaning the build folder, resetting the simulator, restarting both...all the standard stuff. Still happens. This is a project I had been working on in iOS6

Setting the tab bar icon color when popup is shown?

自闭症网瘾萝莉.ら 提交于 2020-01-04 03:44:07
问题 I was already able to set the text and icon colors for my tab bar items as desired. White for not active, blue for active. However, I still run into one issue: When a popover or alert view is shown, the tab bar item icon is greyed out: Is there any possibility to keep the blue color for this state? Thanks for your help. EDIT I'm sorry, but my question is not a duplicate. I already do all these things: self.tabBar.tintColor = COLOR_CORPORATE_BLUE; [[UITabBarItem appearance]

doesNotMatchKey:inQuery: return records that match key in Parse SDK for iOS

戏子无情 提交于 2020-01-04 03:18:13
问题 I'm trying to do a simple query in xcode using the Parse SDK where I am showing products to users but i don't want to show them products they've already "liked." So I have two tables in Parse that I'm using: - Products: has an objectId - Likes: contains columns: Like (says yes/ no), Pointer to a product, Pointer to a user Any my code is: //query will get products that the user has liked PFQuery *likeQuery = [PFQuery queryWithClassName:@"Likes"]; [likeQuery whereKey:@"User_Obj" equalTo:[PFUser

iOS - UITableViewCell make text bold

感情迁移 提交于 2020-01-03 13:41:11
问题 I have a string: NSString *userInfo = @"James Johnson @james"; What i want to do is bold James Johnson and keep @james normal font. So what I have tried is using NSAttributedString but somewhere I'm doing something wrong in order to complete the process. This is what I have tried: NSString *user = @"James Johnson @james"; UIFont *fontLight = [UIFont fontWithName:@"HelveticaNeue-Light" size:14]; UIFont *fontBold = [UIFont fontWithName:@"HelveticaNeue-Bold" size:14]; NSMutableAttributedString

Segue Push Animation with Clear Background is Flashing on iOS 7

▼魔方 西西 提交于 2020-01-03 13:33:43
问题 I have this simple storyboard : all of those UIViewController background are clear (transparent), but I put background image as navigation bar and window background using this code : - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // window background self.window.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"window"]]; // navbar background UIImage *navBackgroundImage = [UIImage imageNamed:@"navbar_bg"]; [

dyld`gdb_image_notifier exception when i run my application in device

偶尔善良 提交于 2020-01-03 09:20:09
问题 When try to load my application on device sometimes i got following exception dyld`gdb_image_notifier:0x2beca0cc: bx lr but after stop and run again everything works fine, can anyone tell me why this occurs 回答1: Basically it seems there is a breakpoint in the debugger. Thought it's not a solution, in order to run the app on the device, just click "Debug" and then "Continue" (or ^⌘Y). That should help pass the breakpoint and carry on running the app. "Debug" -> "Deactivate Breakpoints" can

Xcode 5 - No Remotes Found

微笑、不失礼 提交于 2020-01-03 07:30:15
问题 Here are the steps: Added a repo to beanstalkapp. Added the repo from Preferences > Accounts in Xcode 5. Created a new project with local git. Selected Source Control > Push... Xcode shows me no remotes found. What am I doing wrong? 回答1: Xcode probably doesn't know that the remote belongs to your project. See if this works: Open your project in Xcode Head over to Source Control - Working Copies (your project) - Configure - Remotes. Can you see your remote there? If not, hit the plus sign at

Text Water mark in xcode

核能气质少年 提交于 2020-01-03 06:19:07
问题 hi all i have looked at answers to similar questions and none seem to work for me. I am trying to water mark an image from the camera (image in the below) and add an image and text as a water mark. The below is working perfectly for adding the image but have no idea how to do the text. WmarkImage = [UIImage imageNamed:@"60.png"]; UIGraphicsBeginImageContext(image.size); [image drawInRect:CGRectMake(0, 0, image.size.width, image.size.height)]; [WmarkImage drawInRect:CGRectMake(image.size.width

Where is located the Unlocking Xib files option 'Reset Locking Control' (for 'Localization Locking') in xCode 5 for edition

冷暖自知 提交于 2020-01-03 04:44:06
问题 Where is located the 'Localization Locking' Option ('Reset Locking Control') for Interface builder 5 in xCode 5? In Xcode 4.6.3 I have some xib files locked using the 'Localization Locking' feature (All properties) in interface builder 4.6 to not accidentally changes the Layouts… After opening my project with xCode 5.1 it updated all the xib files to be only opened by Interface builder 5. Now I want to revert the 'Interface Builder Option' to Open with Interface Builder 4.6 BUT I CANT SAVE