xcode7

How to change label color inside table cell with swift 3?

試著忘記壹切 提交于 2019-12-24 09:38:03
问题 I put label inside table cell. I changed the text color into "White" in Attributes inspector. I also changed the label background color into "Green". When I run the app, the text color does not change into white color but background changed to green. I also put the code. cell.lblName.textColor = UIColor.white I declare this @IBOutlet weak var lblAllowAutoRenew: UILabel! in MediaPackListCell.swift file. In TableView.swift , func tableView(_ tableView: UITableView, cellForRowAt indexPath:

Xcode 7: Set Preprocessor Macros per architecture

江枫思渺然 提交于 2019-12-24 07:04:10
问题 I need to set Preprocessor Macro in Xcode just for specific architecture (arm64). How can I do this? There is similar question here on Stackoverflow: Xcode 6: Set Preprocessor Macros per architecture. But in my case Xcode 7 just doesn’t let me to choose the architecture. Tried on Xcode versions 7.1.1 and 7.3.1 with the same result: the only architecture option offered by Xcode is “*” (see the picture below). Preprocessor settings section Just in case here are my Architectures settings:

Xcode 8 CoreGraphics issue with iPhone 7 (running iOS 10)

无人久伴 提交于 2019-12-24 05:45:16
问题 I'm using an iPhone 7 running iOS 10 (doesn't appear to matter which version of iOS 10, but it has to be an iPhone 7 device...even an iPhone 6s with the same version of iOS 10 doesn't have this issue). Unfortunately, I don't have the ability to try an iPhone 7 running iOS 9 or below. In my app, I'm using this method to mask an image with another image: - (UIImage *)imageWithMask:(UIImage *)maskImage { UIImage *returnImage = nil; CGImageRef maskRef = maskImage.CGImage; CGImageRef mask =

Cocoapods not linking correctly for 3rd, 4th target (Xcode 7 beta 6)

喜欢而已 提交于 2019-12-24 05:11:32
问题 I'm having a problem with Cocoapods and Xcode 7 beta 6: I have a project with three different test targets (tests, UITests, IntegrationTests). My pods seem to be working just fine with the first target ("tests") but the other targets are having problems: Everything builds just fine if I don't reference any of the Cocoapods in the latter two targets. However, when I try to use one of the pods (XCGLogger in this case), I get linker errors. I checked the build phases, and found that Embed Pods

Xcode 7.3.1: New project templates' screen's text is overlapped

╄→尐↘猪︶ㄣ 提交于 2019-12-24 03:52:30
问题 There are some overlapped fields while choosing template for new project. e.g. iOS -> Application -> Single View Application and I've also tried with Xcode 8, I didn't encounter any problem rather Xcode 7.3.1 @macOS Sierra. Screenshot: Choose options for your new project: 来源: https://stackoverflow.com/questions/39712664/xcode-7-3-1-new-project-templates-screens-text-is-overlapped

Xcode7 ui testing: staticTexts[“XX”].swipeRight() swipes not far enough

五迷三道 提交于 2019-12-24 03:16:54
问题 For UI testing I want to perform a swipeRight-gesture to make further buttons accessible. The element I want to swipe is at the bottom of the screen. I access it by: element.staticTexts["TEST TEXT"].swipeRight() When performing the test the swipe goes not far enough. It does not trigger the element to slide completely to the right and show the further buttons I want to tap. I have the feeling that swipeRight() grabs the middle of the static text and performs the gesture. Is there any

shouldAutorotate not working with navigation controllar swift 2

余生颓废 提交于 2019-12-24 00:44:04
问题 my app uses several libraryies. Bassically KYDrawerController. I want my App to use only potraite Orientation but for one ViewControllar i need both landscape and Potrait. I have search about allmost every solution on the internet. every solution was to subclass the NavigationControllar and Override ShouldAutoRotate method. but non of them worked for me. and here is the closer View of the entire StoryBoard the gray color View is the KYDrawerControllar view which is an libry uses to work as

Install simulator SDK 8.0 manually in Xcode7.0

喜你入骨 提交于 2019-12-24 00:38:12
问题 It is known that Xcode 7.0 does not support the iOS 8 simulator any more. So when I go to the download preferences I only find the iOS 8.1 simulator and higher. But I really need to test my code on iOS 8.0 and I don't have any device supporting that version, so I need to do this from the simulator. I downloaded Xcode 6.0.1 (to extract the iOS 8.0 simulator) and installed it in my applications, but I could not run Xcode (since it cannot be run on El Capitan). So what I tried to do is copy

Download Mac OS X SDKs for 10.9 and 10.10 in Xcode 7

两盒软妹~` 提交于 2019-12-23 21:15:31
问题 Is it possible to download and build against Mac OS X 10.9 and 10.10 SDKs on OS X 10.11 using Xcode 7? 回答1: Yes it is possible, the XcodeLegacy script is a popular way to automate this. Or you can do it manually, you need to put MacOSX10.9.sdk (or a symlink to it) into /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs . Note you'll need to replace it every time you update Xcode, so the symlink is a good idea. 来源: https://stackoverflow.com/questions/34780323

Cannot subscript a value of type [String: AnyObject]? with an index of type String

混江龙づ霸主 提交于 2019-12-23 21:05:44
问题 I know have many the same question but still cannot find the way to fix my error. Please see the image for more detail. I used Xcode 7 and swift 2.0 Edit: fcking the warning of Swift. finnaly (change?[NSKeyValueChangeNewKey]?.boolValue)! fixed the error 回答1: change is an optional. Either unwrap the optional let isCaptureStillImage = change![NSKeyValueChangeNewKey]!.boolValue or use optional bindings if let changeNewKey = change?[NSKeyValueChangeNewKey] { let isCaptureStillImage = changeNewKey