xcode5

viewWillAppear or viewDidAppear on NSWindowController

泄露秘密 提交于 2020-01-22 17:43:05
问题 I'm developing an app on MacOS X with Xcode5.1 and there's an action I want to trigger everytime the user opens or shows a NSWindowController all I found was windowDidLoad windowWillLoad awakeFromNib but nothing like in iOS: my methods... viewWillAppear viewDidAppear because even if I close an NSWindowController with [NSWindowController close]; if I open it again, it doesn't trigger my actions from windowDidLoad, windowDidAppear or awakeFromNib and now I need something like them, what's the

Xcode 5 upgrade - Now nsobject.h has errors duplicate interface definition for class 'NSObject'

南笙酒味 提交于 2020-01-21 12:18:47
问题 I upgraded to X-Code 5 last night. Now when I've gone to continue development on one of my iOS apps (which compiled fine on the previous Xcode version) I've hit an error I don't seem to be able to solve. When I build the app I get a compile error: duplicate interface definition for class 'NSObject' This appears to actually occur in nsobject.h in both Foundation.Framework and UIKit.Framework. I'm not sure why this is happening. I've removed and re-added both frameworks, performed several

Xcode 5 upgrade - Now nsobject.h has errors duplicate interface definition for class 'NSObject'

巧了我就是萌 提交于 2020-01-21 12:17:07
问题 I upgraded to X-Code 5 last night. Now when I've gone to continue development on one of my iOS apps (which compiled fine on the previous Xcode version) I've hit an error I don't seem to be able to solve. When I build the app I get a compile error: duplicate interface definition for class 'NSObject' This appears to actually occur in nsobject.h in both Foundation.Framework and UIKit.Framework. I'm not sure why this is happening. I've removed and re-added both frameworks, performed several

Xcode 5 upgrade - Now nsobject.h has errors duplicate interface definition for class 'NSObject'

落花浮王杯 提交于 2020-01-21 12:16:48
问题 I upgraded to X-Code 5 last night. Now when I've gone to continue development on one of my iOS apps (which compiled fine on the previous Xcode version) I've hit an error I don't seem to be able to solve. When I build the app I get a compile error: duplicate interface definition for class 'NSObject' This appears to actually occur in nsobject.h in both Foundation.Framework and UIKit.Framework. I'm not sure why this is happening. I've removed and re-added both frameworks, performed several

Xcode 5 - -bundle_loader can only be used with -bundle XCTest

放肆的年华 提交于 2020-01-20 04:05:49
问题 I am working on unit tests with XCTest and Xcode 5. Everything was working just fine, but then a colleague made a push, and it seems to have broken it. I have done the following: BUNDLE_LOADER = $(BUILT_PRODUCTS_DIR)/app name.app/app TEST_HOST = $(BUNDLE_LOADER) and I have played around with the build paths endlessly. Here is the error I am getting, which is tied to a Linker-O error. -bundle_loader can only be used with -bundle Anyone know how to fix this? 回答1: The Mach-O Linker flag in the

CoreData database not showing in sqlite since moving to Xcode 5

别来无恙 提交于 2020-01-17 12:39:46
问题 I have an app that uses a CoreData database the contents of which I view using sqlite . The database path is the same: /Users/Comp1/Library/Application Support/iPhone Simulator/7.0.3/Applications/16226A0A-575C-4356-BFAA-6B1A009C0585/Documents and I can see the database file. But when I open it in sqlite there appears to be no data, although I can read through the app. It was working fine until I loaded Xcode 5. Does anyone know why this might be? No tables shown: 回答1: What happens when you

MPMediaPickerController customize the colors of the labels and icons

筅森魡賤 提交于 2020-01-16 01:05:12
问题 I need change the labels colors of MPMediaPickerController item, on iOS 7 , im using Xcode5 , what can i do?. My code of the creation of MPMediaPickerController is: - (IBAction)addSongs:(id)sender { MPMediaPickerController *picker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic]; picker.delegate = self; picker.allowsPickingMultipleItems = YES; } I was trying with this but not works: https://gist.github.com/acidlemon/1955332 Examples: Thanks in advance. 回答1: Change your

MPMediaPickerController customize the colors of the labels and icons

南笙酒味 提交于 2020-01-16 01:05:07
问题 I need change the labels colors of MPMediaPickerController item, on iOS 7 , im using Xcode5 , what can i do?. My code of the creation of MPMediaPickerController is: - (IBAction)addSongs:(id)sender { MPMediaPickerController *picker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic]; picker.delegate = self; picker.allowsPickingMultipleItems = YES; } I was trying with this but not works: https://gist.github.com/acidlemon/1955332 Examples: Thanks in advance. 回答1: Change your

how to build protocol buffer for iOS7?

不问归期 提交于 2020-01-14 14:55:28
问题 I want to rebuild protocol buffer staticlib in xcode5 , download protocol buffer in http://code.google.com/p/protobuf/downloads/list use autogen.sh , I get a configure file, can make and install on mac, I write a shell script try to build glib for iOS, as blow : export ARCH=arm-apple-darwin10 export ARCH_PREFIX=${ARCH}- export PLATFORM=iPhoneOS export SDKVER=7.0 export DEVROOT=/Applications/Xcode.app/Contents/Developer/Platforms/${PLATFORM}.platform/Developer export SDKROOT="$DEVROOT/SDKs/$

How to change color of UIActionSheet in iOS 7?

六月ゝ 毕业季﹏ 提交于 2020-01-14 06:47:10
问题 I wish I could use custom colors to display Actionsheet in iOS 7.I've been searching for proper answer since couple of days. Any help will be appreciated Thanks.. I'm using UIActionsheet to display PickerView in it 回答1: UIActionSheet is not designed to be subclassed, nor should you add views to its hierarchy. If you need to present a sheet with more customization than provided by the UIActionSheet API, you can create your own. As per apple doc Reference, So you have to use some custom class