xcode5

UIAutomation's dragInsideWithOptions has no effect on iOS7 simulator

穿精又带淫゛_ 提交于 2019-11-28 08:37:25
Since I use Xcode 5 and the new iOS 7 simulator to run UIAutomation tests with Instruments, dragInsideWithOptions and dragFromToForDuration functions have simply no effect. (The same tests worked fine with iOS 6.1 simulator.) Is this a known bug, or the usability of this functions has changed? Is there anyone who could use this function with iOS 7 simulator on iPad? Same issue here. In addition to dragInsideWithOptions not working, dragFromToForDuration and flickFromTo aren't working either in Xcode 5 with iOS 7. I have been searching and waiting for a solution as well. Until then, swiping won

XCTest build errors for test target Xcode 5:

夙愿已清 提交于 2019-11-28 07:14:19
I have set up an XCode 5 iOS 7 project for unit tests. Of course, setting up the unit tests are taking me so long that I'm trying to keep the faith that it's worth it. Struggling for hours over this error: ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode5-DP5.app/Contents/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture i386 Any ideas on how to solve? Check your Framework Search Paths in your test target settings. These can be corrupted when adding the XCTest Framework. Adding XCTest to one of my projects prepended a "/"

Custom tab bar icon colors

喜夏-厌秋 提交于 2019-11-28 06:06:35
Im currently using Xcode 5 to develop a list oriented app. I have a custom tint for the tab bar, custom images for the tab icons, custom tint for the tab bar's icon images when its selected, but i cannot find how to customize the icon images' tint for when its not selected. Right now its just the default gray which you can barely see in contrast to my green tab bar. I want to make the tab bar icons' images and names white. Does anybody know how to set the tab bar icons' image tint in Xcode 5? You can try this to tint selected icon : // Custom the tab bar [[UITabBar appearance]

Linker Error in Xcode 5 for libzbar.a

人走茶凉 提交于 2019-11-28 04:26:01
After I integrate ZBar Sdk into my project, my xcode 5-DP starts showing below warning: "ld: warning: linking ObjC for iOS Simulator, but object file (/Documents/Projects/Project/Utility/ZBarSDK/libzbar.a(ZBarReaderViewController.o)) was compiled for MacOSX " Mario Building a ZBar library Sometime back I had a different problem with ZBar and was led to a helpful set of instructions here: https://web.archive.org/web/20170128181158/http://www.federicocappelli.net/2012/10/05/zbar-library-for-iphone-5-armv7s/ Basically, the instructions tell you how to check out the source code using Mercurial,

Xcode 5 crashes when running an app with SDL 2

六眼飞鱼酱① 提交于 2019-11-28 04:22:01
I tried to follow these two tutorials (or the applicable parts of them, due to version differences) to install SDL 2.0.2 to work with Xcode 5.1: Tutorial 1 Tutorial 2 Running any program with the SDL 2 framework linked causes Xcode to crash with the following problem details: Process: Xcode [1787] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 5.1 (5084) Build Info: IDEFrameworks-5084000000000000~21 App Item ID: 497799835 App External ID: 444172641 Code Type: X86-64 (Native) Parent Process: launchd [257] Responsible: Xcode [1787] User ID: 501 PlugIn

how and where do I initialize an global NSMutableArray in Xcode 5

时光怂恿深爱的人放手 提交于 2019-11-28 04:13:31
问题 I am trying to initialize a global NSMutableArray that I can add integers to later. I just need to know how and where I should initialize my array so that it can be accessed and changed by any function that I use later in my program. Also I am using Xcode 5 and know that the array needs to be 180 in length. 回答1: In your AppDelegate.h file - @property(nonatomic,retain) NSMutableArray *sharedArray; In AppDelegate.m @synthesize sharedArray; In didFinishLaunchingWithOptions - sharedArray = [

No Round Rect Button in Xcode 5?

喜夏-厌秋 提交于 2019-11-28 03:56:50
Is drag and drop of round rect button no longer available in Xcode 5? I can't seem to find it in the Interface Builder. I was guessing that this is one of the changes in iOS 7, but I just wanted to make sure. The Round Rect button from Xcode 4 and previous versions appears to have been replaced with the System Default button, which also happens to be clear. I.e. by default there is no white background with rounded corners, only the text is visible. To make the button white (or any other colour), select the attributes inspector and scroll down to the View section: Select Background and change

IOKit Not found

孤街醉人 提交于 2019-11-28 03:50:18
So everything was fine, and then I decided to start developing on XCode 5 DP3 and iOS7 Prior to upgrading, my project compiled and ran fine on my iPhone 3GS (I made a little soft phone application); it didn't run on my iPhone 5, however; I was very confident that it was the fact that I hadn't configured it to include the armv7s architecture yet. I can build and run everything just fine on the simulators, but (and this is after configuring the app to include the armv7s architecture) I can't get it to run on either my devices. I get this error: ld: framework not found IOKit clang: error: linker

Change copyright / top-comment / “header” on ALL new files in Xcode 5

雨燕双飞 提交于 2019-11-28 03:40:40
When you create any file in Xcode5, the top of the file looks like this: Is there a way to CHANGE that template or creation so that it looks different? When I say "change" here's an example of what it could be: Please note, I do know how to change the name, product name, corporate name, etc. I want to know how to change the actual "template" itself. (If it is possible.) I do not care, at all, if I have to redo the change each time Xcode is upgraded This is only regarding Xcode 5. Not Xcode 4. I already know how to change the name and other individual items; I want to change the whole "template

Is there any way to add constraint between a view and the top layout guide in a xib file?

二次信任 提交于 2019-11-28 03:31:53
In iOS 7, we can now add a constraint between a view and the top layout guide, which I think is very useful to solve the status bar offset issue in iOS7(especially when there is no navigation bar in the view). In a storyboard file, I can add this kind of constraints easily. Just hold the control key then drag the view to the container, it will show the "Top Space to Top Layout Guide" option. But when I do the same operation in a xib file, this option disappears. So, is there any way to add this kind of constraints in xib files? Or do I have to add them with code? Neeraj Khede You should refer