I'm using this code in my app: if ([[NSUserDefaults standardUserDefaults] objectForKey:@"First_RUN"] == NULL) { [self tutorial:nil]; [[NSUserDefaults standardUserDefaults] setInteger:1 forKey:@"First_RUN"]; [[NSUserDefaults standardUse
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
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
I'm having a problem with a deprecated method, I'm trying to change it for one working right now, but no luck, does someone knows how to solve this? The problem is that I'm working on a code that is not mine, so I don't get it very well. This is the
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
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
This question might be a duplicate, but I couldn't find any reasonable answer. I am developing an app that supports all iOS devices, for which I have to import image resources for every device. If I use image optimizer, it will destroy quality of ima
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
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
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
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
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
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
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
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... http://www.brianjcoleman.com/tutorial-c
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
Ok, I'm implementing background fetch and so far everything is good. The only problem that I face is that I cannot test the case when the app isn't running and is launched in the background. According to Apple you do this by simply duplicating your c
I am using class sizes in interface builder, defining slightly different designs for different sizes. One of my view is not installed for a specific size. That works as expected, but now I would like to programmatically be able to tell if that view i
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
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
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
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
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
I just recently downloaded Xcode 6 beta 4, and my swift project compiles with no errors but before it gets to my code I get a dyld_fatal_error just above start in the call stack. and a breakpoint in some assembly code with a nop instruction The conso
I was folling this tutorial for Swift: https://www.raywenderlich.com/125311/make-game-like-candy-crush-spritekit-swift-part-1 and came across this code: func == (lhs: Cookie, rhs: Cookie) -> Bool { return lhs.column == rhs.column && lhs.row ==
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
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
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
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
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