How to disable the target for application extension when building in xcode?

In order to disable building/running the NSExtension you build, you should: Click the project file in the project navigator Click the containing app target (the one you DO want to run) Click Build Phases tab Open Target Dependencies or Embed App Extensions Remove the extension (the one you DON’T want to run) To bring it … Read more

What does the “Embedded Content Contains Swift Code” build setting in Xcode 6 do?

It does not need to be Yes for linking. This setting is only for when you have a pure Objective-C target that depends on a mixed-source or pure Swift target. Description: Enable this setting to indicate that content embedded in a target’s product contains Swift code, so that the standard Swift libraries can be included … Read more

iOS 8 Custom Keyboard: Changing the Height

This is my code on Xcode 6.0 GM. Both orientations are supported. Update: Thanks to @SoftDesigner, we can eliminate the constraint conflict warning now. Warning: XIB and storyboard are not tested. It’s been reported by some folks that this does NOT work with XIB. KeyboardViewController.h #import <UIKit/UIKit.h> @interface KeyboardViewController : UIInputViewController @property (nonatomic) CGFloat portraitHeight; … Read more

How to set the height of a Today Widget Extension?

In your widget UIViewController.m (Objective-C): self.preferredContentSize = CGSizeMake(0, 200); Will make your widget have a height of 200. Note that the width will have no affect on the view, as widgets must fit in the exact width of notification center, which is handled automagically. Also, if you want to animate changes in the height of … Read more