xcode4

How do I rotate a video from UIImagePickerController before uploading to a webserver

烈酒焚心 提交于 2019-12-22 18:07:32
问题 I'm uploading videos to a web server after choosing the video using the UIImagePickerController. However, videos shot with the camera in landscapeRight orientation are inverted on the server. I want to use AVFoundation to rotate the video before uploading. I've figured out how to get the size and preferredRotation of the video using AVAsset. Now I need to apply an affine transform to the video before uploading. Here's an example of the size and transform from a landscapeRight video: 2011-01

XCode 4.2: Renamed project file in project navigator, all project settings/config lost

半腔热情 提交于 2019-12-22 17:49:28
问题 I'm panicking a bit here... In the project navigator, I clicked and renamed my .xcodeproj file (thinking it was the way to rename the project). What has happened is that all the settings and files for the project have disappeared from the project navigator, and i'm left with a blank project! Checking in Finder, it's removed my old .xcodeproj file, created a new one with the name I gave it - but on inspection, the file is empty! nothing inside. I fear I may have lost all the settings in there.

Mac OS X Lion 10.7.2 Xcode 4.2 memory issues

北慕城南 提交于 2019-12-22 13:31:33
问题 I've got MacBook Pro 2011, 15" i7 2GHz 8GB Ram 1333 MHz OS X Lion 10.7.2 all updates installed released to this date. I have done everything what I can to minimize RAM consumpsion and the only problem I've got at this point is when I run Xcode. I had 4gigs of RAM, than bought 8 gigs and always 've got 10-30 MB of free memory after 3-5 minutes of Xcode running and PAGE INS are 300MB - 700MB. I tried to switch to 32-bit running mode but no change. Can anybody help me please? 回答1: Yes. One way

XCode Won't Commit To GIT

≯℡__Kan透↙ 提交于 2019-12-22 12:34:08
问题 Been googling for a while with no luck. I have been working on my app for a week and I'm trying to commit to git now, so I can start branching and try some new stuff. But I can't commit my changes. I get the following message: "The working copy "APP NAME" failed to commit files. fatal: Could not switch to '/Users/Leonne/Documents/iOS Projects/APP NAME/APP NAME/Resources': No such file or directory" I have initialized the git repository. I don't understand what could be going on. Before, I did

Connecting file owner to app delegate

冷暖自知 提交于 2019-12-22 12:32:52
问题 At some point I deleted the Object to my appdelegate file for some reason from the XIB. I added a new object, and selected MyAppNameDelegate as the class. However, it's not connected to file owner, and I dont seem to get the option when right clicking and dragging. I think this is causing me some runtime issues. Any ideas? 回答1: If you are referring to your MainMenu, the the file's owner is an object of type NSApplication. In IB, you should select your file's owner, access it's 'delegate'

NSXMLParser stops parsing after encountering special character

我只是一个虾纸丫 提交于 2019-12-22 12:29:07
问题 I am reading a XML file from google weather api and parsing it using NSXMLParser. The city in question is Paris. Here is a brief xml output I get <?xml version="1.0"?> <xml_api_reply version="1"> <weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" ><forecast_information> <city data="Paris, Île-de-France"/> <postal_code data="Paris"/> <latitude_e6 data=""/> <longitude_e6 data=""/> ... ... Now the code I used to pares this xml is NSString *address = @"http:/

Unable to connect to svn repository with XCode 4

懵懂的女人 提交于 2019-12-22 11:35:34
问题 After installing XCode 4 I went to the Organizer window to try to verify that the svn repositories that were set up in XCode 3 were recognized. The repositories were there but whenever I clicked on one I would always get the 'busy-wait' spinner. Thinking that XCode 4 didn't properly import the repository information, I went through the steps to re-create one of the repositories from scratch. I'm pretty sure I've input all the details correctly and I know I'm using the right password, but

UIColor conversion from RGB to HSV , set brightness to UIColor

眉间皱痕 提交于 2019-12-22 11:29:19
问题 In my app I am trying to draw with different colors. I have my own color picker, but I want to add to this picker slider for color brightness. For understudying : I choose a color which is displayed somewhere in view as background color and to this color I want add slider which will slide from 1 to 0 and change brightness of the color and displays the color in window. Therefore I want to ask if there is any possible way how to convert. in my project I use this : CGContextSetRGBStrokeColor

Added Mac target to iOS project in Xcode, now 'Error Starting Executable File'

牧云@^-^@ 提交于 2019-12-22 10:55:04
问题 I've decided to make a Mac OSX port of my iOS app, so based on a number of suggestions I've received I've simply added a new Cocoa target to my iOS project, and set up a series of 'libraries' (which encapsulate the core business logic of my app) which I have added to the OSX target. I have not added all of the UIViewController code to the OSX target - I will have to rewrite the UI code, for obvious reasons. The app is building fine (no compiler errors for missing libraries, etc.), but for

Lock file in Xcode 4

為{幸葍}努か 提交于 2019-12-22 10:34:03
问题 I've got a simple question. In Xcode 3 I was able to lock a file by clicking on the little lock icon at the top of each file. I'm missing this function in Xcode 4. I think I'm just blind. Can you help me? 回答1: That feature was killed (partially) in Xcode 4. Even though you can Unlock a locked file from the File menu, you cannot Lock it. Even though locking files is still possible with the Finder, it is much more troublesome when you need to lock multiple files. The long way now involves right