xcode7

Strange values displayed in Xcode debugger

断了今生、忘了曾经 提交于 2019-12-12 03:33:00
问题 I'm currently using Xcode version 7.2.1, and I'm getting weird values displayed for most values in the debugger. The weird thing is it's always the same value. Other than a few values, all variables are listed as containing the value "00:30:00". The best way to show this is to give you an example. I have tried restarting Xcode, clean and build, re-booting, and even re-installing Xcode, but I can't seem to escape this weird value. If I put in print statements, all the values show up correctly

Checking if text field is empty

我是研究僧i 提交于 2019-12-12 03:21:46
问题 I am attempting to check if a text field is empty but am getting an error of "Type (Bool, Bool, Bool) does not conform protocol 'Boolean Type' " if(userEmail == "", userPassword == "", userRepeatPassword == "") { alertMessage("All fields are required") return } I am using xcode 7 回答1: Try this, if(userEmail == "" || userPassword == "" || userRepeatPassword == "") { //Do Something } (or) if(userEmail == "" && userPassword == "" && userRepeatPassword == "") { //Do Something } 回答2: Your should

Swift/XCode 7: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)

≯℡__Kan透↙ 提交于 2019-12-12 03:19:44
问题 I have created a self signed certificate with openssl and sha 256 like the following: openssl req -x509 -nodes -sha256 -days 365 -newkey rsa:2048 -keyout server.key -out server.crt and I've installed it correctly in my AMPPS server by configuring httpd-ssl.conf file. If I try to perform, on a web browser: https://localhost I correctly see that connection uses TLS 1.2. When I run my app under iOS 9 simulator, I guess that error (9813) is raised because my certificate is self signed. Is there a

Xcode 7 Beta 6 Pre-release App won't launch (in simulator)

拈花ヽ惹草 提交于 2019-12-12 02:46:28
问题 I'm trying to get UI testing set up for my project - I encountered a crash with previous betas. (See this stack overflow question if you are interested) Anyway, I was quite thrilled to try it with Xcode 7 Beta 5. I created a simple Single Page app, added a text field and button, and ran it in Simulator. The simulator loads but the app doesn't get installed. I've tried it in different simulators, all iOS 9 - same behavior in all of them. Anyone else see this behavior? Am I missing something?

XCode , can i search all views in xib files with a specific hex color?

穿精又带淫゛_ 提交于 2019-12-12 02:41:55
问题 I'm working on an Ios app and i need to replace all the backgrounds color of my xib view from one code color to another, something like "replace #000000 with #666666". Can i do this search with Xcode? I think that is impossible but maybe there's a way... EDIT This is what i can find in a xib opened as source code: <color key="backgroundColor" red="0.1764705882" green="0.1529411765" blue="0.1333333333" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> But i can't search colors anyway 来源:

Add Bundle Version and Build to splash screen using PhoneGap

ぐ巨炮叔叔 提交于 2019-12-12 01:39:17
问题 Using the latest PhoneGap what is the best guidance someone could give as to adding the Bundle Version and Build Number overlaying a PhoneGap Splash screen. I see this on other apps but most likely those apps may not have been built with PhoneGap. From what I have read you could use a UIView controller to do this to the didFinishLaunchingWithOptions method. I am not an Objective C coder and native apps are new to me so any guidance as to where to start would be helpful. I am on El Capitan

TableView selected cells - checkmarks disappear when scrolled out of sight and new cell checked

我是研究僧i 提交于 2019-12-11 23:34:17
问题 I have a tableViewCell that uses a checkmark in accessoryType of cell. I have a function that puts the contents of the cell into textField and similarly removes the text from the text field when it is unchecked. It seems to work fine but if I check a cell and want to check a cell thats not visible (IOW) I need to scroll the tableView, the cell that was checked (is now not visible) seems to uncheck itself (Only when I check a new visible cell). The multi select works with visible cells only.

Force to zoom app in iOS9

ε祈祈猫儿з 提交于 2019-12-11 21:31:28
问题 I have an app that in iPhone 6 I want it to be scaled proportionally and zoomed. Basically I want to imitate the Applied ZOOM from Settings. At the moment, when I run the app with the Zoom mode from Settings, everything works fine but when I run it without that Zoom from Settings, the views displayed are smaller. How can I fix it? 回答1: From Apple's What's New in iOS documentation: To let the system know that your app supports the iPhone 6 screen sizes, include a storyboard launch screen file

An error occured while attempting to download the container from application Xcode

末鹿安然 提交于 2019-12-11 18:09:36
问题 While running my app on iPhone, I needed to view the database contents. So I selected Devices in Xcode and chose my device. Thereafter, I selected my app and clicked on the Settings button which shows 3 options: Show container, Download container and Remove container. On clicking the Download container option, I was asked where I want to store the container. After selecting the location, I am getting the following error: An error occured while attempting to download the container from

xcode crash on adding localization for Info.plist with Base localization

痴心易碎 提交于 2019-12-11 13:25:41
问题 I am using Base localization with Xcode 7.0.1 in a swift ios project. When trying to add a localized version of Info.plist , Xcode crashes reproducibly. The crash report reads: Process: Xcode [8668] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 7.0.1 (8228) Build Info: IDEFrameworks-8228000000000000~5 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Xcode [8668] User ID: 501 Date/Time: 2016-02-09 20:19:34.068 +0100 OS Version: Mac OS