Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [ios]

Questions about issues that are specifically related to Apple's iOS operating systems (whether directly or indirectly).

Filter by
Sorted by
Tagged with
3
votes
4answers
4k views

What should a rest api return for an empty guid?

I have a .net api backend for mobile apps and the question came up (in conversation with the iOS develper) if a JSON response for an empty GUID should return: 00000000-0000-0000-0000-000000000000 ...
1
vote
1answer
124 views

Do iOS view controllers and their viewDidLoad method violate the single responsibility priniciple?

I am learning about OOP principles and realized that on iOS view controllers become massive because we tend to stuff all the view responder methods in them. A lot of stuff happens in the viewDidLoad ...
2
votes
2answers
354 views

How to handover an iOS project that creates views in code?

I'm training the new iOS developer who will replace me. However, the majority of views in the project is created with code (using a library to make Autolayout more concise). There is no storyboard in ...
-1
votes
1answer
139 views

How to prove a certain app uses my library? [closed]

I am the author of an iOS framework and I know for sure that an app uses it, but the app's author is not attributing it. How can I prove this in a way that also a judge would accept it?
1
vote
1answer
37 views

MVC: In iOS how to pick a view and then apply a suitable controller to it?

Per MVC design pattern as in GOF, "a view can be disabled so that it doesn't accept input simply by giving it a controller that ignores input events". That means, we decide a view first and then pick ...
2
votes
1answer
264 views

MVVM, example of use in iOS

I have a view controller with a mapview (Apple Map), on top of that there is a view with a button and a textfield. The view is compacted around the search button, when I touch it it expands revealing ...
5
votes
2answers
160 views

What would cause a company to need to move their app on the iOS App Store to different “app”?

I'm not sure what SE site to ask this on, but I figure this is something somebody in the SE community has the answer. Feel free to move this question if this is the wrong place. Recently I launched ...
0
votes
2answers
378 views

How to properly architect app to display long forms with a lot of controls?

Basically, I've been tasked to work on a Xamarin.iOS app (predominantly for tablets only) that would display a long scrollable form that contains ~200 controls (buttons, switches, text fields, etc...)....
6
votes
1answer
1k views

When should an iOS app create a new NSURLSession vs. reusing an existing one?

I'm migrating my team's app to use NSURLSession instead NSURLConnection's because of the numerous now-deprecated APIs in the NSURLConnection family of classes and protocols. As part of that, we need ...
2
votes
0answers
642 views

What are the disadvantages of using a C++ base for cross-platform Android and iOS development? [closed]

I've done some research and one method used for cross-platform mobile application development is to use the lowest common denominator approach, packaging platform-independent functions in a shared C++ ...
2
votes
2answers
227 views

Which one is more efficient; a subclass of UITableViewController for multiple purposes or multiple sub classes each for a purpose?

Say I have two views (Table View for example) that I'd like them to do different stuff; each loads different data but behaviors are similar for most par except what happens when a cell tapped for ...
0
votes
1answer
413 views

How should I divide up classes in an MVC application?

I'm going through Apple's Start Developing iOS Apps (Swift) tutorial and I'm confused on how they are using MVC. They have a custom control (the view, a subclass of UIStackView), it is basically 5 ...
1
vote
0answers
76 views

How to follow MVC in a standard iOS App theoritically?

I want to understand one thing in plain english that how do I actually use an standard MVC design pattern in iOS App. I know about Modal View and Controller and theoretically I know what they do(...
2
votes
1answer
3k views

Can Kalman Filter make GPS data more accurate?

I'm trying to improve indoor gps accuracy in ios application. Do people apply such filters to gps data in different apps which track your position? I have 10-20 meters error indoors when using raw ...
2
votes
1answer
130 views

Correct Design Choice for Maintaining “static” View Across Multiple Controllers?

First, I am not sure if I'm asking this within the correct Stack Exchange community, so if this question belongs somewhere else, please let me know. It didn't seem appropriate for Stack Overflow. I ...
5
votes
1answer
149 views

Framework logs on client application

We are currently building a framework (closed source static library) that will communicate with some Smart home devices via Wi-Fi. This framework will be used by 3rd party developer to build their own ...
1
vote
0answers
441 views

How should one design a modular mobile application?

I'm currently working on a native mobile solution where I need to design a modular application. Imagine a scenario where you have your core application and 3 supporting modules. You can either sell ...
0
votes
2answers
96 views

How does an app send an order to a retailer? What happens under the hood?

I am wondering how the apps that allow a user to choose an item and, once the user has selected an item and checked out, give the retailer information about order that has been placed. For ...
3
votes
1answer
508 views

Testing White label iOS and Android mobile apps

We are in the process of developing white label apps for iOS and Android app. I was thinking about the test strategy for handling white label apps with minimum resources. My company is targeting for ...
0
votes
2answers
997 views

Design for keeping local user profile data in sync with the server

So I'm working on an iOS app and I’m thinking about how to keep user profile data in sync between server and client. The first idea that comes to mind is to create a class called User. It would be a ...
2
votes
2answers
92 views

Should I provide as less optional size app icons as possible?

When submitting an app (especially iOS and android), there are some different size of app icons need to add into the app. Among of them, some sizes are optional, is it a good practice that I just ...
1
vote
1answer
307 views

Design for iOS app backed by API

I was wondering if anyone out there has general tips for how to structure an iOS app backed by a REST api. There are basically two approaches to this that I've thought of API calls placed ad hoc in ...
3
votes
2answers
9k views

Sending push notifications to iOS devices from a Java server

I have a seemingly standard task of sending push notifications to Apple devices from a server written in Java. I have never done that in the past, so I went to tutorials and Apple documentation. 1) ...
-1
votes
2answers
156 views

Relational or non relational database for my described application?

I want to design and implement a mobile application in which: Every user who have already registered is able to add new news (including title: text plus a picture, and content: long text, pictures or ...
2
votes
1answer
480 views

How to avoid repeating a condition in methods that use it differently?

Let's say I have an app that displays details for a person. Each person can have zero or more phone numbers and zero or more notes attached to it. Thus, I have a Core Data entity Person with one-to-...
1
vote
1answer
108 views

What's the answer to my Unit Testing dilemma when setting up mock dependencies?

I am trying to implement VIPER architecture on iOS in Swift. The problem I have is how to set up the object graph. Please ignore the Router and the Entity as it is not relevant to my problem. That ...
0
votes
2answers
1k views

Solving slow but successful server response on iOS

I am trying to solve two situations here related to making POST requests and handling responses. Making a request and having request timed out due to no server response, as well as assuming that in ...
3
votes
1answer
529 views

Class depends on too many classes

I am developing an iOS app and I am moving to a VIPER-like architecture. It looks like this: View--ViewModel--Router--ViewModel--View The difference from the VIPER is that I have have one global ...
5
votes
1answer
461 views

Concept of push notifications - why is it only on mobile platforms? OSX/Windows/Linux?

At an operating system level, mobile operating systems support the notion of push notifications or a socket level 'persistent' communication with an app, whenever it is online. Why have the major ...
1
vote
0answers
45 views

How to handle an api with severe technical debt? [duplicate]

Our company uses another companys api. This api is written using IBM domino. This api is horrifically inconsistent and outdated. E.g. sometimes returning JSON, sometimes html. Inconsistent naming and ...
4
votes
3answers
487 views

How do I refactor massive view controller

I have a view controller which has 5 different subviews, these subviews are changed according to some conditions, then there are functions which apply background color and add some minor aesthetics to ...
1
vote
2answers
166 views

RESTful Api for Mobile Clients

I am mobile developer and always have one particular fight with my web-service/backend developer which believe in designing restful api. Issue: As per Restful design,every api should be atomic in ...
2
votes
1answer
61 views

Access Code Structuring For Enterprise Software

I have just finished an iOS application for a company that will be sold commercially to schools and other organizations for a flat rate with an access code. I was wondering if anyone has had any ...
0
votes
2answers
145 views

Are there any formalised minimum quality standards for software development?

I've joined a very large new company who have very different ideas about what constitutes quality in development. In trying to convince managers about what should change, are there any well accepted ...
0
votes
1answer
5k views

Making profit using OpenCV?

I was looking to use OpenCV to program an image recognition app for iOS. One thing I wanted to check is if I were to charge $0.99 or $1.99 for the app, would I be breaking OpenCV's license? I didn't ...
1
vote
1answer
262 views

Can iOS Apps receive and play burst audio in the background like a walkie talkie?

I'm digging into background audio playing for iOS Apps. I do see a bunch of examples for doing continuous audio playing for background Apps. I wanted to add walkie-talkie like features to my current ...
1
vote
0answers
2k views

Sockets (SignalR) vs Push notifications

I'm developing a Xamarin.Forms app with a .Net Web API backend. I definitely don't want to do long polls on my app to the server, but I need the app to remain updated with the server information. I ...
0
votes
2answers
713 views

How can I integrate Python into an OSX program?

I'm very comfortable with Swift, Obj-C, and Javascript but for a new project I need to use a library that is only available in Python. How do I integrate python or python scripts into an OSX project? ...
1
vote
1answer
360 views

Why are there no cross-platform mobile applications?

As a part of my master's thesis, I am carrying a research topic on why there are no cross platform mobile applications. As applications developed in Java can run on any operating system using the JVM,...
6
votes
4answers
3k views

JSON API or Plain JSON

There is a debate in my company on whether we should use the JSON API specification or stick to plain JSON for developing APIs that will be consumed by mobile apps, mainly iOS and Android. One ...
0
votes
1answer
1k views

TestFlight version numbers

If I update an iOS app as a result of tester feedback during TestFlight, should I be updating the "marketing" version number, or just the build number? My current (initial) version number is X.Y.Z ...
1
vote
3answers
241 views

Why do successive iOS versions take longer to run the same task on the same hardware?

Updating the iOS version on an old iPhone tends to make basic operations like startup, placing calls, and checking settings take longer. The change from eg iOS 7 to 8 on an iPhone 4S has a very ...
1
vote
0answers
701 views

Swizzling of app Delegate method in Universal framework

I have created a universal framework in which i want to swizzle the App delegate's method so that i can get the device token directly in my framework Here is the code + (void)load { Method ...
0
votes
1answer
168 views

Can I use some GitHub control/Framework with MIT / BSD / Apache Licence to distribute my iOS Enterprise App?

I develop iOS app with some GitHub controls and Framework as like FMDB,AFNetworking,OpenCV,RadioButton,CheckBoX etc... but now my worry is I want to distribute this app with Apple Enterprise account (...
1
vote
3answers
94 views

Caching and website performance on iOS vs PC

I have a website that pulls from a database to display images/names/misc info. The pages are used on both iOS Devices (iPhones, iPads, iPods so far) and on PCs using internet explorer and Safari/...
3
votes
3answers
189 views

GPLv2 code as a separate process in a closed-source iOS app?

I'd like my (currently) closed-source iOS app to use some GPLv2 licensed code. The code I want to use is simply a converter from one file format to another — nothing too complex or proprietary. Given ...
0
votes
1answer
69 views

multitouch application, creating custom UI elements, and stacking oscillators with audio kit

An App I'm working on is kinda like an appear-as-you-touch piano. Using AudioKit and the gesture recognizing I have my app set up to: make a new button appear when the user touches the screen (...
1
vote
1answer
146 views

How to comply to Disability Discrimination Act of 1995 while developing an iOS app [closed]

We have a requirement from our UK client in which he wants us to comply to Disability Discrimination Act of 1995 while developing the iOS app. I tried to search about it on Internet but most of the ...
0
votes
1answer
466 views

iOS: How to switch between prod and non prod REST end points

A noob iOS dev question: How do iOS developers develop their app with non prod REST URL endpoints while then using a prod REST URL endpoint for actual use by customers? I'm not aware of a way you ...
3
votes
1answer
275 views

How to deprecate an entire mobile application? [closed]

Six months ago I launched a free app that I developed and self-funded. From peak usage of a few thousand users, it has now bottomed out at a few hundred. It was an interesting project, from which I ...