Tag: xcode

Issue with new MapKit MarkerAnnotationView in iOS 11

I’m having trouble with MKAnnotationView. I wrote the code embedded below to display my pin, which works, but I never EVER want the subtitle to show up, so I wrote the var subtitleVisibility: MKFeatureVisibility to .hidden, as shown in my code. Though it still shows up, just like if the subtitleVisibility was .adaptive … What’s […]

SourceKitService Terminated

I am having a issue with Xcode where the error “Source Kit Service Terminated” is popping up and all syntax highlighting and code completion is gone in Swift. How can I fix this? Here is an example image:

Undefined symbols for architecture arm64

I am getting a Apple Mach-O Linker Error everytime I import a file from CocoaPods. Undefined symbols for architecture arm64: “_OBJC_CLASS_$_FBSession”, referenced from: someFile ld: symbol(s) not found for architecture arm64 I get about 12 of these, for the various Pods I use. I am trying to build for the iPhone 5S using XCode 5. […]

cordova-plugin-camera show camera options based on the users phone language

I use the camera plugin in my cordova app. While using the camera from the app in an ios device the labels shown are in the language that is selected from the “Localization native development region” in XCODE which currently is Danish and the options are displayed in Danish. Is it possible to automatically take […]

How to force a UIViewController to Portrait orientation in iOS 6

As the ShouldAutorotateToInterfaceOrientation is deprecated in iOS 6 and I used that to force a particular view to portrait only, what is the correct way to do this in iOS 6? This is only for one area of my app, all other views can rotate.

How to change the background color of a UIButton while it's highlighted?

At some point in my app I have a highlighted UIButton (for example when a user has his finger on the button) and I need to change the background color while the button is highlighted (so while the finger of the user is still on the button). I tried the following: _button.backgroundColor = [UIColor redColor]; […]

How to symbolicate crash log Xcode?

Xcode 5 organizer had a view which would list all the crash logs. and we could drag drop crash logs here. But since Xcode 6, I know they have moved devices out of organize and have a new window for the same. But I do not find a place where I view the crash logs […]

How to validate an url on the iPhone

In an iPhone app I am developing, there is a setting in which you can enter a URL, because of form & function this URL needs to be validated online as well as offline. So far I haven’t been able to find any method to validate the url, so the question is; How do I […]

Impact of Xcode build options “Enable bitcode” Yes/No

Yesterday I recognized a ton of warnings regarding the parse.com library: URGENT: all bitcode will be dropped because ‘[path]/Parse.framework/Parse(PFAnalytics.o)’ was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. Note: This will be an error in the future. […]

What is a StoryBoard ID and how can i use this?

i’m new to IOS developing and recently started in Xcode 4.5. I saw for every viewController that i could set some identity variables including the storyboard ID. What is this and how can i use it? I started searching on stackoverflow and couldn’t find any explanation for it. I assumed it’s not just some stupid […]