Tagged Questions
iOS is the mobile operating system running on the Apple iPhone, iPod touch, and iPad. Use the tag [ios] for questions related to programming for the iOS platform. Use the related tags [objective-c] and [swift] for issues specific to those programming languages.
0
votes
0answers
2 views
Display app icon on lower left corner in lock screen using geofence
I want to display my app icon on left lower corner in lock screen when it entered a specific geographical region. I know that it can be done using Suggested Apps, Geofence and iBeacons. But cannot use ...
1
vote
0answers
3 views
StartApp -> No such module 'StartApp'
Using StartApp in a Swift app I have this issue (Xcode 7.3.1). On the line:
import StartApp
I keep getting this error message:
No such module 'StartApp'
I have my StartApp.bundle and ...
0
votes
0answers
2 views
Xcode 7.3 IOS 8.3 Simulator can't connect to internet
I am currently working on a project in Xcode 7.3 and only the IOS 8.3 simulator cannot access the internet. I have tried rebooting it, reseting it, closing it, and restating the whole computer. Any ...
0
votes
0answers
3 views
Xcode Validate fails with: “Your account does not have permission to create profiles.”
When attempting to validate or update an IOS application I get the error message:
Xcode attempted to locate or generate matching signing assets and
failed to do so because of the following ...
0
votes
0answers
3 views
Parse check new item created in background
I have a IOS Objective c app that I need to preform a action once a new object is created in Parse. Is there some way I can wake the app by making it query by the user who created the object.
0
votes
0answers
10 views
iOS iPhone app not displaying correctly on some devices
So I've been working on a PDF reader for iOS, the app itself works fine on iPhone 6 and I think 5 as well, however on iPhone 4S and when running in compatibility mode on iPad it only displays this:
...
0
votes
0answers
5 views
Facebook IOS SDK: Overcoming “Your app must not use a Facebook Web Dialog” on version 3.x
I'm working on an application which is running the 3.x version of the Facebook IOS SDK. Upon submission for review, the app was turned down, due to the following:
Your app must not use a Facebook ...
0
votes
0answers
5 views
Web App after restoring iPhone 4 backup on iPhone SE has the iPhone 4 size
I am moving from iPhone 4 to iPhone SE.
I have a web app on my iPhone 4 that was added to the home screen.
After restoring iPhone 4 backup on the iPhone SE I see this Web App but its size is ...
0
votes
1answer
27 views
Swift: error: linker command failed with exit code 1
There are similar questions, but none that answer my question.
I am using Swift 2.0 I am working on a project that shows longitude and latitude using CoreLocation.
I also am using the Social ...
-1
votes
1answer
30 views
Why won't this swift code work properly?
I have been learning swift for a short time and designed a simple ios swift app in xcode to open up an alert and display the developer name inside of a label when tapped. The code is posted below. For ...
1
vote
0answers
9 views
How to check UIWebView url link for possible file?
I have implemented a model class called RCHDownload
It has a function to start downloading a file using a String it is called addDownload(url: String)
This function can be used anywhere I want using ...
0
votes
0answers
15 views
Going back to previous View Controller without reloading it
I'm trying to learn Google Map API and i'm building an app that have two View Controller. Root View Controller loads a Google Street View Panorama as shown below:
@IBOutlet weak var viewStreet: ...
0
votes
1answer
34 views
Add two buttons in footer in the same row
hello I want to add two buttons on my ViewController programmatically like this
What I have done is this
func createButton(buttonTitle: String,buttonAction: Selector) -> UIButton{
let ...
0
votes
0answers
9 views
Streaming vs Downloading for short videos on iOS
I have a bunch of videos that I need to play in an iOS app and I'm trying to decide which format to use.
All the videos are about 10-15s long (<1MB) - will HLS streaming be faster / less data ...
0
votes
0answers
3 views
Blank page when printing HTML table using UIPrintInteractionController
I am printing HTML table using UIPrintInteractionController. The contents of the table are half an A4 size paper, but there always a blank page that gets printed. I have checked there are no contents ...
0
votes
0answers
6 views
Setting sound configuration for Socket device
Using the following code to attempt setting the sound on/off for a Socket 8ci...not quite working for me. Can you suggest a proper command? As you can see in the code I set the Sound frequency based ...
0
votes
1answer
21 views
Passing data to parent view controller when pressing back navigation arrow
I've seen many ways of passing data from a view controller back to its parent in the navigation stack and even though I think the case that I'm going to describe should be quite common, none of these ...
0
votes
0answers
12 views
Firebase Cloud Messaging Doesn't Create Push Notifications but Gets Information
I was working through this tutorial (https://www.youtube.com/watch?v=JsWHzU1DxjM) to try and put push notifications into my iOS app. I was able to successfully get the certificate for APNS and set the ...
0
votes
0answers
11 views
Remove var object from memory in titanium
I have one .js file with a window and then I add all my layouts to this window.
first.js
var Win = Ti.UI.CreateWindow({
backgroundColor : 'white'
});
Win.open();
secun.js
var View = ...
0
votes
0answers
5 views
Pushing View Controller from Child View Controller
I am developing an application where there is a container view and I am attempting to push it into another view controller from the parent. When I try pushing the navigation bar stays the same of the ...
0
votes
0answers
4 views
Correct CMMotionManager yaw for current UIInterfaceOrientation
I am using the CMMotionManger to get yaw readings with the following code.
Regardless of the UIInterfaceOrientation, I am trying to get readings minus 1.5708 rad if yawed 90 degrees right, and ...
0
votes
0answers
17 views
Override old object in array swift ios
I have an array of custom objects. For simplicity, lets say each object has 3 properties : id, timestamp and text. I am now obtaining a JSON response from my server which contains updated text for my ...
0
votes
0answers
14 views
Objective-C: Annoying - I get about 5-6 Notifications per minute from my UILocalNotifications
How to fix this issue?
This is my code:
NSDate *dateToSet = [NSDate dateWithTimeIntervalSinceNow:1.0];
NSString *message = @"Test notification";
UILocalNotification *warningNotification = ...
0
votes
0answers
12 views
Custom screen rotation in SpriteKit game
So I'm working on a game in SpriteKit and want to animate the screen rotations myself. My current approach is doing UIView.setAnimationsEnabled(false) so the screen rotates instantly, and then in my ...
0
votes
0answers
7 views
Camera permissions on iOS9 seems to be iPhone 6 specific
I'm have issues with the test-flight version of our app when attempting to take a photo.
On most devices everything works fine, but something seems to be going wrong, specifically on iPhone 6.
Because ...
0
votes
0answers
14 views
UIImagePickerController not working iOS 9.3
I'm trying to access my photo library and camera using UIImagePickerController. However when i call presentViewController(imagePicker, animated: false, completion: nil) the app screen just freezes (it ...
0
votes
0answers
3 views
libgdx ios-moe exception com.badlogic.gdx.backends.iosrobovm.IOSGLES20.init()
I take gdx-setup.java from https://libgdx.badlogicgames.com.
I select android, desktop and ios-moe. Then run project in Intellij IDEA with Multi-OS Engine Cloud Build.
All build successed. But when I ...
0
votes
0answers
3 views
How can I get UIActivityViewController to exclude activities that cannot handle a certain custom NSURL file type?
I send a file NSURL to UIActivityViewController. The file type is custom, created by my app as a backup. The activities should only be activities where files can be sent (and then launched, like ...
0
votes
1answer
10 views
Searchbar not displaying correct image Swift Xcode 7
I have created a fully functioning tableview that populates its data from a text array (String) and an image array (PFFile). I have also implemented a search bar that displays the filtered results ...
0
votes
0answers
17 views
Swift - Instance member cannot be used on type ViewController
I'm getting the following error on my circleLayer.strokeEnd line: "Instance member 'sales' cannot be used on type 'ViewController'." Does anyone know why I can't divide an Int by another Int and use ...
-1
votes
1answer
18 views
Convert uint64_t to NSNumber
Code below:
- (id)initWithMediaCollection:(MPMediaItemCollection *)mediaCollection collectionCategory:(NSString *)collectionCategory
{
self = [super init];
if (self) {
...
-3
votes
1answer
17 views
What's the difference in rows and sections in NSIndexPath in Swift?
I can't seem to see what exactly a section is. I know what a row is in UITableViewController, but what is a section. Is it a separate piece of information? I'm a beginner and couldn't find a clear ...
0
votes
0answers
15 views
Best way to Web-scrape and inject JavaScript using React Native?
I recently started using React Native to work on an app that involves web scraping. We've been using a component called the React Native WebView Bridge, which is similar to the UIWebViewBridge library ...
0
votes
1answer
6 views
How can I scale my Cordova/PhoneGap app? Should I use “cordova-anyscreen”, or is it too hacky?
I'm having problems scaling my app on different devices that have the same proportions but with different -device-pixel-ratio factors.
Example: I have two 360x640 screens, and I make everything fit ...
1
vote
2answers
18 views
Trying to make rightBarButton appear after making it disappear using Swift
I currently am working on an app in Swift where in my viewDidLoad() method I have purposely hidden my rightBarButton on my navigation bar like this:
self.navigationItem.rightBarButtonItem = ...
0
votes
1answer
19 views
swift function not returning string?
I created a function to return a username with a Firebase query on the userID parameter. I want to use this username to populate the text labels in a tableView. Although the query within the function ...
0
votes
0answers
11 views
how to simplify and make it better using enum, swift learning, enum
I am defining some of ranges by following
let range0_15 = 0 ..< 15
let range15_30 = 15 ..< 30
let range30_45 = 30 ..< 45
let range45_60 = 45 ..< 60
I really want to use ...
-1
votes
1answer
11 views
How to convert a website to iOS app
I have developed a website, and now I would like to transform this website to an iOS application.
There is a tool in Android which is called "Website 2 APK Builder" which does what I want. I don't ...
0
votes
0answers
9 views
Implementing AdMob Interstitials - ShowInterstitial() not showing interstitial
I've been tinkering with AdMob all day and can't get an interstitial to show. I've attached my code below. The idea is that I request an ad on start, show the ad, then request another so it'll be ...
0
votes
0answers
7 views
Understanding Crashlytics Error Logs
I am using Crashlytics to track and fix crashes in my live app. However, I am not very knowledgeable on how to understand what the thread is telling me.
Usually on XCode, you get specific information ...
0
votes
2answers
16 views
Swift iOS convert ArraySlice to CGFloat
I have an array with Int values. In this array I need to get the highest value. Until here I have no problem. But now I need to convert this value to a CGFloat.
let ordersPerHour = [hour0All, ...
0
votes
1answer
22 views
removeFromSuperview not working even with call on main thread
I have an 'overlay view' and I am trying to remove one of its subviews based on a message passed via an NSNotification. Towards that end I have registered the view controller for the relevant ...
0
votes
0answers
2 views
Implementing iOS user authentication with Auth0
I'm building a social network type iOS application. The server is built with node.js, and it runs on Heroku. Along with that, user data is stored in an Azure SQL Database. As I'm looking at how to ...
0
votes
0answers
12 views
Black Screen in UIViewController behind the content
I have a detail view controller which is pushed when a row is selected in a table view. When in a session the first time a row is selected it works fine. But when in the same session any row is ...
0
votes
0answers
4 views
How do you hook up the next and last buttons on iPhone 6 and larger keyboards?
On the larger iPhone screens (4.7" and larger) when in landscape mode the keyboard has an extra row of keys on the right (in right to left languages at least). The top two of these buttons are last ...
0
votes
0answers
9 views
Using UIDeviceOrientation change notification instead of viewillTransistionToSize
I have managed to support Portrait and Landscape orientations for my app.
However, my implementation is based on UIDeviceOrientationChangeNotification. I do not use viewillTransistionToSize
Offical ...
2
votes
1answer
8 views
Trying to make UISearchController function like language settings in iPhone in Swift
I currently have implemented a UISearchController which is currently working fine. Here are the attached screens that show how:
However, what I would like to do is implement it in a way that ...