How can I configure Xcode to show the number of the line that caused a log to be printed? I'm seeing logs in my debugger, and I'm not sure where they're coming from.You can use built in macros: __PRETTY_FUNCTION__, __LINE__, __FILE__, and others. Obj
WebSocket connection failed with error Error Domain=NSPOSIXErrorDomain Code=61 thrown when trying to run react-native on physical iOS device. It does on run simulator. This is not a duplicate post. I have read all other stack overflow posts with simi
I've tried adding a gesture recogniser, not realising that it isn't possible with a UITabBarItem, here is what I did: Any other suggestions?I don't think this will have a simple solution, as double tapping a tab bar item is not expected behavior. Eve
Get User's Current Location / Coordinates has something that appears to be what I want: you should do those steps: add CoreLocation.framework to BuildPhases -> Link Binary With Libraries import CoreLocation to your class - probably ViewController.swi
I'm simply desperate, searched for 6 hours now and can't seem to find an answer. I have a collection view with images loaded from a remote server and while scrolling the cells are being refreshed with previous images for a few seconds before settling
For some reason Xcode is not archiving my project after adding AdMob to it. I am currently using -objc and -all_load in the project because I am using Adobe Creative. Its working perfectly on an iPhone 5 and simulator but when I want to archive the p
I'm trying to query images from Parse and I continue to run into fatal error: unexpectedly found nil while unwrapping optional value. I'm not sure if this has to do with the recent update to Swift and Xcode, so maybe it's on the Parse end or it could
This question already has an answer here: Initialize class-instance and access variables in Swift 2 answers Below is code: import UIKit class ViewController: UIViewController, UITableViewDelegate { @IBAction func sliderMoved(sender: UISlider) { var s
I created my Universal device game app in iOS 7.1 and there for have my deployment target set to 7.1. I currently use both iPhone/iPad simulators with 7.1 and 8.1 iOS versions. Would there be an impact, in game performance, if I set my deployment tar
I am using a local git repo. When I try to commit changes to the core data model file (.xcdatamodel), I get this message: error: pathspec '.../DataModel.xcdatamodeld/DataModel.xcdatamodel/contents' did not match any file(s) known to git. How to fix t
So I recently had my app rejected by Apple. This is what they said: 2.1: Apps that crash will be rejected ----- 2.1 ----- We found that your app crashed on iPad running iOS 8 and iPhone 5s running iOS 8, which is not in compliance with the App Store
I'm having some issues with an app i'm working on. It used to work just fine, but now I noticed that many of the UILabel I have in my XIB have a font and color reset. For example, if I set a white or red color in my XIB, it appears black when I run m
I'm trying to convert an old game application built in obj-c to the new swift code. i'm having some issues understanding swift closures and how to use them for example in the"startAccelerometerUpdatesToQueue" method. i have initialized the motio
I have a tutorial for my app, which should display only the first time the app is opened and should be tapped to dismiss. I am initializing a UITapGestureRecognizer in my viewDidLoad: tapper_tut = [[UITapGestureRecognizer alloc] initWithTarget:self a
I was wondering if it was possible to shorten code automatically in the last version of xcode. You know, when you press on the side of a void method for example and the (...) appear, and you have a shorter page. Is there a command to do it?Click on t
I'm porting my application from Windows to Mac using XCode. One thing my application does is it runs a WebSocket server for communication. I've seen many WebSocket client libraries on github, but I'm having trouble finding one that handles server com
Now i have reinstalled XCodes 4.6 in my Mac Mountain Lion. After that all syntax color is show only blue like following pic. And not show line number. How can i do that Please help me?You can set the fonts and colors in Xcode's preferences. It even i
Ive added a segmented control to the header of a uitableview. this works fine. but for some reason i cannot make the segmented buttons (or at least just the first button) have a red background color. it just loads with the default silver. -(UIView *)
I have done my iOS app, but I don't want to submit to App Store. Shall I pass it to my friend and run on his iPhone without jailbroken? I heard it has some certain certificate allow other guys to run it. I have developer account. would you please pro
I am making an iOS calculator app in which the scientific notion is enabled by using Label.text = [NSString stringWithFormat:@"%g",savedValue]; Its format is e.g. 1.09101e+120. Since I have enough display space I would like to make it more logic
My app has custom UITableView cells. I want to show only one cell at a time - next cell should show partially. In ScrollView you can set isPagingEnabled to YES. But how can i do above in UITableView? ThanksNote that UITableView inherits from UIScroll
I have three text fields: first name, last name, and age, also a photo. What can I do so that the information saves automatically, so that i dont have to click a button? This is my ViewController.h: #import <UIKit/UIKit.h> @interface ContactViewCont
I have been trying to get this to work correctly and I think I have finally come up with the correct solution because when I login on my iphone it seems to work fine. I am sort of new to php so I was wondering if I made any mistakes or if I could imp
I have one table view and each cell has one button after pressing button, button image got change but if I scroll tableview then button image comes in previous state how to avoid this problem.Store in an Array the state of the button, and when the ce
I have a question: If I created an app with ARC, what's the last version IOS compatible for my app? If I upload my app in AppStore, everyone can use my app? or only people with a device with a specific ios version?ARC is supported on iOS 4.0 with one
I need a registration page in my application which should appear only at the first launch of the application. I appreciate any help available . Thank you.Look into: NSUserDefaults (for saving and loading the registered info) - https://developer.apple
i want to change the button color when it is clicked. I used : [button setBackgroundColor:[UIColor redColor]]; but this shows red color only on the four corners of button not on the whole button and also when i use forState:UIControlStateNormal then
I just updated my app so that it's a universal app. In doing so I added support for UIPopoverController in a certain place. Now the app seems to be crashing on 3.1.3 iPhone/iTouch devices: OS Version: iPhone OS 3.1.3 (7E18) Report Version: 104 Except
How do I create a reusable library/module in XCode 3.2? What I want to do is create a bunch of classes that provide certain functionality compile them into some kind of library, add such a library to an existing xcode project and use the classes in i
I'm building an application where I want to provide the user with a few dozen templates that will internally take the form of property lists. I would also want to group them in categories, which would conveniently be achieved using folders. While I h