Get rid of spaces in a TextView in Interface Builder

I have an issue on iOS devices larger than 4 inches. As you can see, there is a large gap of whitespace at the bottom of my Text View. I am wondering how to clean it up to remove this whitespace using Interface Builder.Simply change your bottom const

How to get the missing content of the storyboard?

I have a problem that I have designed my app on another machine, zipped that project and then I used that zipped file on different machine though my application is working fine however in storyboard I am unable to see the contents in the view control

Facebook SDK 4.0.1 Quick Errors xcode 6.2 iOS 8.2

Here in this change-log(facebook change-log) it is stated that there is no need for objective-c bridging headers for swift. But when I import FBSDKCoreKit in AppDelegate.swift these errors occur: FBSDKAppLinkResolver.h /Users/[username]/Documents/Fac

using the .nib file instead of the xcode 6.2 storyboard

Problem outline : .nib view displayed in simulator disappears instantly and a black screen is shown Details: I just started working with ios so please excuse me if this question sounds totally absurd. I am using xcode 6.2 I created a new Single View

Access ViewController from the UIAlertController button.

I am quite new to Swift development and I tried referring to the Swift UIAlertController API but couldn't figure out how to navigate to another UIViewController after clicking a button on the UIAlertController. I would appreciate any pointers, help o

to call a method of the same class in xcode

i want to call a method "shows()" but why i am getting the error that "expected identifier or ( " and "use of undeclared identifier self" ViewController.m #import <UIKit/UIKit.h> @interface ViewController : UIViewContro

How can I read data from a PLIST in Swift?

i'm facing a problem with reading data from a plist file using swift my code: let Chapterpath = NSBundle.mainBundle().pathForResource("chapterMapping", ofType: "plist") let dict2 = NSDictionary(contentsOfFile: Chapterpath!) let chapter

How to divide the space evenly between several buttons?

I have four buttons inside a view container. I want to have the space between the buttons automatically resized equally depending on the device's screen size. The view container is constrained as follows: Horizontal and Vertical to Superview Equal Wi

Xcode 6.1 crashes when running the project

I searched StackOverflow and it doesn't look like many people are having this problem, but for me, this happens very, very frequently. Maybe not every time, but perhaps every other time. Once I try to build and run the app, Xcode crashes, and in a st

WatchKit SDK does not recover data from NSUserDefaults

I wanted to make a test app for the Apple watch in which you can set some String on your phone, and then it will be displayed on the Apple Watch. I decided to use NSUserDefaults class to store this data. In my view controller for the iPhone I have a

take an image from UITextView

I have a UITextView containing text only and I want to take a snapshot from it. I created it programmatically. UITextView *textView = [[UITextView alloc] init]; If the background color of the UITextView is black and the text color is white, I want to

uiCollectionViews in a uitableViewCells with swift

I have seen many examples of a uicollectionview in a tableview cell with older xcode versions, but am having trouble finding/figuring out how to develop using swift. I have been playing with this source code...

The navigation bar is too small

I am working on an iPad app and when I try to put the navigation bar on the first view controller, it fits in the main storyboard but is too small (also comes in contact with the status bar) when I run the simulator (as seen in the picture below): Th

Running tests on Xcode 6 and the device

I am trying to run unit tests on Xcode 6 if I run them on the simulator (and 7.1 at that) they run fine other conditions yield this message: 2014-10-10 01:39:56.190 MyApp[493:173988] Error loading /private/var/mobile/Containers/Data/Application/A6C42

Why in Xcode 6 does not work Preview Wizard?

Sometimes in Xcode 6 Assistant Editor -> Preview stops working. Showing just "No selection" even if no errors and Storyboard is ok. Why does this happen?The reason is "?" (questionmark) in Project's name (maybe there is a bug with o

Xcode 6 GM download error: No software found with apple_id at SoftwareAssets

I am trying to update an app that was rejected for a Crash. I am using Xcode 6 GM release. I have 2 problems: 1̶)̶ ̶I̶ ̶c̶a̶n̶n̶o̶t̶ ̶f̶i̶n̶d̶ ̶t̶h̶e̶ ̶"̶r̶e̶a̶d̶y̶ ̶t̶o̶ ̶u̶p̶l̶o̶a̶d̶ ̶b̶i̶n̶a̶r̶y̶"̶ ̶o̶p̶t̶i̶o̶n̶ ̶i̶n̶ ̶t̶h̶e̶ ̶n̶e̶w̶ ̶i̶n̶t̶e

Access different views inside a UITableViewCell by tag in Swift

I'm trying to make an app for iOS 8, using swift. The goal here is to make a kind of news feed. This feed displays posts from users, which follows a certain pattern. I thought of using the UITableView where each cell follows a custom layout. The prob

DocumentType does not match Xcode 6 Beta 5 using Swift

I was building a Document based app for OS X using Swift in Xcode 6 Beta 4 and it worked fine. After upgrading to Xcode 6 Beta 5, however, I get the following error message every time a document window tries to open: The DocumentType type doesn't map

Swift Equatable Protocol

I was folling this tutorial for Swift: and came across this code: func == (lhs: Cookie, rhs: Cookie) -> Bool { return lhs.column == rhs.column && lhs.row ==

Error When Using Generic as a Property Type in Swift

I'm having an issue when using a Generic as the type constraint on a property. Here is a very simple example: import UIKit class TSSignal<MessageType> { var message: MessageType? init() { } } In Xcode 6 Beta (6A215l) this will not compile. It fails

Universal development in Xcode 6

I have Xcode 6 beta installed and I'm trying to develop an universal app. Before Xcode 6, you had to create 2 separate Storyboards for iPad and iPhone and you could set it in the Deployment Info. In Xcode 6, it seems that separation is gone. There ar

Swift and Spritekit will not work on a device running iOS 7.1

I'm getting a really weird warning when I try to run my Swift project on my device, using Xcode 6. The device is running iOS 7.1, and my mac is running Mavericks. I have written a little game in Swift and SpriteKit, and it works in Simulator, but whe

Compile and run metal examples

It has been a while since I have used XCode, but since Apple revieled XCode 6 and the new Metal API I had to check it out. They have released examples, e.g. a converted version of their Basic3D example. I am having problems making them compile and ru

Disable Xcode anti-aliasing text in the Code Editor?

When using Xcode, there doesn't seem to be a way to set code editor fonts to be sharp (i.e. with no 'font smoothing). Despite what you might see in the preview area of Preferences > Fonts & Colors, inside the actual code view it's always smoothed/a