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

learn more… | top users | synonyms (2)

2
votes
3answers
181 views

Objective-C Lesson in Class Design

I have the following classes: Teacher Student Class (like a school class) They all extend from KObject that has the following code: - initWithKey - send - processKey Teacher, Student ...
-2
votes
0answers
27 views

Saving Passwords in iPhone device

In my application login user details (in one is user password) save in my iPhone devices. What way better to save user password in iPhone devices. I have what way use like NSUserDefault, Core ...
0
votes
1answer
59 views

Do I require an external server for my new mobile app? Only minimal text content to change within my app every couple of weeks

A very simple question, apologies if I offend. I am about to submit my new app to the App Store. It's very simple. The app generates a random motivational quote and displays it onscreen. I have a ...
1
vote
2answers
163 views

Is this an appropriate code structure, or is there a better one?

This is an iOS app but I will try to make it as general as possible because I think a wide audience could have good feedback. I have a application I am making for iOS. It has 4 main tabs in a tab bar ...
1
vote
1answer
96 views

iOS Best practice for handling model objects

There are different levels I'm asking this question at. Case 1: Let's think about the typical drill-down design. Say a table view controller has an array of custom objects, and tapping a cell will ...
2
votes
1answer
556 views

iOS bluetooth development: mimicking the SPP profile

I need to interface a custom device with bluetooth 2.1 (it has the RN-42 chip), with an iPhone and iPad. The device uses the Bluetooth SPP profile. From my research it appears that iOS supports ...
1
vote
0answers
14 views

Launching iPhone App - Do I need separate names for the App and the Landing Page/website or can I use the same name?

I am launching a iPhone App. Do I need two separate domain names for the app and the landing page website or can I use the same name for both. The website will solely be used to advertise the app ...
-1
votes
0answers
29 views

How can I refactor my http swift code to do retries? [closed]

In my ServerAPI class I have this method: func getState(name: String, completionHandler: (result: dto?, error: NSError?) -> Void) { let parameters = [String: AnyObject]() /* 1. Make the ...
0
votes
1answer
39 views

Can Qt desktop programs be recompiled for Android/iOS as-is?

One of the advantages of open-source programs is that they can be ported easily to any platform simply by recompiling. Qt is also a cross-platform toolkit that can work on several platforms simply by ...
0
votes
1answer
60 views

Calling closed source library from LGPL library

I am integrating an LGPL application to my iOS application. As I am modifying the LGPL application, I am planning to open the modifications I make to the LGPL library. I am modifying the LGPL ...
-4
votes
0answers
27 views

Soundcloud API using swift [closed]

I am making an app in which I want to integrate SoundCloud API.. I googled a lot but seems like SoundCloud doesn't allow their API to be used anymore.. Any help i can get?? Because still i see apps ...
0
votes
0answers
24 views

Design solution for currentUser object behavior in the SDK

Background Our team working on the SDK to give third-parties access to our service. The basic functional is moving around the current logged-in user. Basically we have a User class with static ...
0
votes
0answers
29 views

How to get dual UI for an ionic app?

I would like to get some suggestions for building a new app. This app has two faces/UI to it, buyer/seller. Users would have same account, and it would be seller and buyer. Its something similar to ...
9
votes
3answers
5k views

Continuous integration (with iOS and Android projects)

I'm trying to make some positive changes in my company and one of the changes is implementing continuous integration. We do mobile development (iOS/Android) so I need a CI that supports both types of ...
0
votes
1answer
162 views

Do iOS frameworks require the same internal versioning as OSX frameworks?

I have been reading through the apple documentation for creating frameworks for OSX and iOS. Reading about the structure of frameworks, I began to wonder if there is really any need to create the ...
1
vote
1answer
232 views

Manage the persistence of entities on iOS in several places: CoreData on the device, iCloud and on a REST API

For the needs of a project, I would persist the datas contained in Core Data in several places depending on the state of the user. If the user is logged to my API -> Persist the datas on my API. ...
0
votes
1answer
435 views

offline application development for mobile devices

I am looking to develop an application whereby field staff can complete forms in an offline capacity (when onsite I`m assuming no internet connection) on an Apple or Android device and post the ...
0
votes
2answers
79 views

Which design pattern to choose when supporting multiple analytic tools?

I have spent quite some time learning all possible design patterns but I cannot find the ideal one for the following case. I am developing an iOS app where we are using multiple analytics tools like ...
4
votes
3answers
163 views

How narrow should my unit tests be?

Here's an example: I have a chat module in my app, and there's a ChatService class that is responsible for networking, and there's a ChatNotificationService helper class that is responsible for ...
-2
votes
1answer
98 views

How do I create my own Objective-C to Swift converter? [closed]

I'm really interested in writing my own converter. I know C++/Python/Objective-C/Swift and a little Haskell. There are website like objectivec2swift and iswift.org, which can convert OC to Swift ...
6
votes
1answer
2k views

Solutions for iOS collaborative sync (iCloud CoreData, CouchDB)?

I'm developing an iOS app where one of the features will be allowing users to share and collaborate on data (e.g. lists). From everything I've read and based on the way that iCloud CoreData sync works ...
1
vote
2answers
154 views

How to test android apps that depend on telecom provider connection?

I am planning to write an app that needs phone number and contact list. Is there any way that I can test my app without buying a telecom provider connection for my android phone. Without a sim the ...
2
votes
2answers
230 views

iOS Core data & NSUserDefaults

I am creating an App where users can search items from an external API. If the users likes an item they can store them into their personal "favourites item list". My question is, is it a good ...
0
votes
1answer
107 views

Could this class be considered as a Factory class? [closed]

I've recently worked on a reusable network service class for a service-aggregator iOS app. This class should retry a failed request if it was caused by expired user token. Plus, this class will be ...
0
votes
1answer
64 views

Incorporating GPL content in a commercial application on iOS

Let me start by saying I do generally understand copyleft GPL, but I'm having some trouble with this particular scenario. It's quite complicated to communicate but I'll try my best. First I'm ...
3
votes
2answers
421 views

IOS app updates that don't require App Store submission

Some apps, I've noticed that developers are able to update their software without submitting them to the App Store. For example, Game of War will occasionally tell you that an update is available ...
0
votes
0answers
33 views

Should a class method have access to data from the app delegate?

I'm working on an iOS app with a codebase that the majority of I did not write. For the task at hand, I'm in a situation where I need a class method to have access to data that's returned through the ...
2
votes
1answer
3k views

Private apps for iOS and Android

Is it possible to develop private apps for iOS (iPhone/iPad) and Android? With "private apps" I mean apps that do not appear on the public app store, but can be downloaded and used only by selected ...
0
votes
0answers
68 views

Did Apple violate OCP back when they released iOS 7

If I remember correctly, back when iOS 7 was released, there were a couple of issues regarding the public API of certain classes which implementation was completely changed. The following is an ...
1
vote
1answer
44 views

Where to do post-processing of API call when used in MobileApp

Let's say I want to write an (iPhone) app, which tells you if you are in manhattan or not. This query involves additional computation after a google map API call (and is of course just an example). ...
2
votes
1answer
88 views

Who is responsible for setting color in MVVM?

I have an iOS app where after exceeding a certain limit, part of the user interface changes a color to alert the user. I'm using MVVM to accomplish this and division of labor looks like this: Model - ...
0
votes
0answers
109 views

Unit Testing in iOS — Should I split out my Data Model into its own class?

I'm attempting to try out using unit test in for the first time in new iOS activity for work. I love the idea of unit testing, but always find the specifics to be... messy. I get the general ...
3
votes
1answer
1k views

Usage of MVVM in iOS

I'm an iOS developer and I'm guilty of having Massive View Controllers in my projects so I've been searching for a better way to structure my projects and came across the MVVM (Model-View-ViewModel) ...
0
votes
0answers
72 views

What's the accepted way of communication between two model objects in MVC?

I have a model object that fetches data through an URL connection, and another model object that stores and parses it. Eventually when the data is ready, a key-value observing notification is ...
9
votes
2answers
4k views

Why does Apple only allow for Static Frameworks on iOS?

Clearly Apple has the ability to create dynamically loaded libraries (known as frameworks) for iOS, as they ship several with XCode (such as UIKit). App developers only have the ability to create ...
16
votes
1answer
441 views

Rest APIs - mobile specific challenges

I'm working on a new iOS app project, on the mobile side. Some architecture changes are happening and it turns out we will have to rely on a custom built private API that will be used by the app we ...
1
vote
1answer
255 views

Does javascript continue to run in an inactive browser tab on most mobile platforms? [closed]

If I design a javascript system that shares a websocket with cross window messaging pumps and local storage, what will happen if the browser tab the websocket is running on is in the background on an ...
1
vote
1answer
145 views

Can I use GitHub as my mobile app's data store? [closed]

Given a relatively simple mobile app that consumes semi-static (infrequently updated by hand) data, is it a good idea to simply store said data in a public GitHub repo, in form of a structured ...
13
votes
3answers
1k views

Massive View Controller - IOS - Solutions

I'm sure every new iOS developer has the following problem: The View Controllers get very fast crowded with code for various purposes, easily getting to 500 + lines of code. This is how it looks like ...
2
votes
4answers
2k views

iOS chat application design, sending/relaying the message over to the end user

I have a design question. Let us say you were tasked with building a chat application, specifically for iOS (iOS Chat Application). For simplicity let us say you can only chat with one person at a ...
1
vote
2answers
159 views

What is a good way to organize service layer classes?

I had a Service layer in my app and, for a while, there's just one class for API calls Current Scenario MyAPI Class authenticateApp() authenticateUser() Looking in the future, that class will be ...
-1
votes
1answer
92 views

Global counter using iOS and Parse? [closed]

I'm very new to Parse and trying to set up what is basically a voting app where I can collect data on how many times all users have pressed a button. I found some information on Atomic Increment ...
1
vote
1answer
178 views

Best architecure approach to develop iOS app

I'm trying to create a calendar app similar to this design: Calendar Design I'm currently using this calendar framework: CVCalendar and it's working great, but my question is, what do you think is ...
3
votes
1answer
229 views

Ways to do callback, when and where

I've recently started to do some more complicated programming with network-related work on iOS with Swift. This introduced a lot of asynchronous code not only in networking but also some exchange of ...
0
votes
0answers
47 views

Design for local text storage (70 000 words) in iOS

I would like to code an interactive story app for iOS devices. There will be a large amount of words locally stored.(70 000, 35 000 for each language as the text will be available in two languages). ...
1
vote
2answers
136 views

Is there a detriment to using SQLite over a pList for persistence?

I'm making a fairly simple application and I've got a settings menu that stores times and some boolean values. I have the application storing and retrieving data already but I started to wonder if ...
1
vote
2answers
265 views

Testable design in Swift

I've been searching for so long about how to design testable classes in Swift but every information site just describe basic stuff like how to test, how to assert, why is testing good... My current ...
1
vote
0answers
95 views

How to create calendar events in android (that will work with iPhone later too)

I'm developing an Android app right now with a cloud back-end using Google App Engine + Cloud Endpoints (a RESTFUL service). Eventually, I will find an iPhone developer to make my app for iPhone ...
6
votes
2answers
2k views

If I have two developer license accounts with Apple, can I easily switch between the two for app development and publishing?

I've been interested in iPhone development since the release of the iPhone, however, I am on a limited personal budget. I've never been willing/able to fork out the money necessary for an iPhone and ...
4
votes
1answer
187 views

Is Apple sample code the “correct” way to go?

I'm in a place were I know how to build apps and have submitted at least 5 for different clients to the app store and wanted to step up my game. So of course I went to Apple resources and analyse the ...