iOS Programming

Subscribe to iOS Programming feed
A subreddit to share articles, code samples, open source projects and anything else related to iOS or macOS development. Swift or Objective-C.iOS Programming
Updated: 15 min 46 sec ago

How do I create a trending page on my app (obj-c)?

2 hours 15 min ago

I want to have a page on my app that looks at the most popular posts, not of all time because I feel like that wouldn't change much. I would like to make it so every-time a user refreshes the page the trending posts change. I was thinking maybe check the posts that were liked the most in a certain amount of time. How do I create a good trending page on my app?

submitted by /u/p511
[link] [comments]

Native ad mediation

Tue, 06/19/2018 - 19:18

I'm trying to monetize an app as much as possible without inhibiting used experience too much.

We've settled on native ads over banner ads because we've been told that the rates for native ads are much higher than banner ads (if there are other ways to monetize apps that .

Has anyone found a really good mix of native networks to use? Which ad servers have the most integrations?

Also, if you have any other recommendations on how to monetize in way that doesn't hurt user experience too much, I'd love to hear about it.


submitted by /u/schoenbl
[link] [comments]

Is it worth using sketch if I already know photoshop

Tue, 06/19/2018 - 13:51

I already know how to use photoshop well enough. Is there any advantage to using sketch over photoshop, while designing an app?

submitted by /u/1footN
[link] [comments]

Core Location/MapKit help

Tue, 06/19/2018 - 13:08

Please may someone explain listing 2 to me?

I'd like to have the ability to convert a text input into coordinate locations, in order to find the distance between two locations (e.g. a user could type in "TW12 3HD" and "KT6 6RL" and it finds the driving location between the two).
I'm fairly new to CoreLocation etc. and just wanted to know how to implement that function in Swift, please!

submitted by /u/chumps52
[link] [comments]

Submission Guidelines Scraper App

Tue, 06/19/2018 - 12:50

Hi, I just finished programming a scraper app that uses private Netflix API endpoints ( not private iOS APIs ). Using those APIs might interfere with this section of the App Store Review Guidlines:

5.2.2 Third Party Sites/Services: If your app uses, accesses, monetizes access to, or displays content from a third party service, ensure that you are specifically permitted to do so under the service’s terms of use. Authorization must be provided upon request.

I'm not ripping any actual content, all I'm doing is checking the user's viewing history. The Netflix terms kind of forbid the use of scraping tools:

4.6. You agree to use the Netflix service, including all features and functionalities associated therewith, in accordance with all applicable laws, rules and regulations, or other restrictions on use of the service or content therein. You agree not to archive, reproduce, distribute, modify, display, perform, publish, license, create derivative works from, offer for sale, or use (except as explicitly authorized in these Terms of Use) content and information contained on or obtained from or through the Netflix service. You also agree not to: circumvent, remove, alter, deactivate, degrade or thwart any of the content protections in the Netflix service; use any robot, spider, scraper or other automated means to access the Netflix service; decompile, reverse engineer or disassemble any software or other products or processes accessible through the Netflix service; insert any code or product or manipulate the content of the Netflix service in any way; or use any data mining, data gathering or extraction method. In addition, you agree not to upload, post, e-mail or otherwise send or transmit any material designed to interrupt, destroy or limit the functionality of any computer software or hardware or telecommunications equipment associated with the Netflix service, including any software viruses or any other computer code, files or programs. We may terminate or restrict your use of our service if you violate these Terms of Use or are engaged in illegal or fraudulent use of the service.

This is probably aimed towards different things, but I guess that could apply to my case. While I, as the developer, am not violating those terms, the the user could be.

Will this instantly get me rejected? I'm about to invest 99$, I'm willing to take the risk that apple could pull the app when Netflix interferes, but if they reject instantly then I'm out.

I have released the app to Android if you want to check it out here. Thank you for any advice / experiences.

submitted by /u/c00liu5
[link] [comments]

Looking For Swift Example Project!

Tue, 06/19/2018 - 11:50


I am an Android Developer, and I'm crap at Swift. I want to get better, so I was looking for an example project on GitHub that showed best practices for MVC, and other Swift standards such as RxPromises. I already know the basics / have an app on the Store.

I was trying to an example project on my own... but I can't seem to find any example projects with clean code / for reference. Can anyone link me to one?

For example, on Android, here is a google project designed for referencing (it's in alpha):

A better example is the example project U20/20 from Jake Wharton, which demonstrates a ton of Android concepts:

I learn best by example, especially when I just want to know the best practices instead of starting from scratch.


submitted by /u/hypeDouglas
[link] [comments]

Have the app serve as Wi-Fi access point

Tue, 06/19/2018 - 07:26

I’m not sure if this is possible, but the scenario is this. I want to have the iOS app create a hotspot or anything that it can serve as Wi-Fi access point. And in this case, for example an iOT device/hardware can connect to the iOS app/phone.

I need direction, I don’t know where to start. Thanks!

submitted by /u/dirtylowprofile
[link] [comments]

noob at xcode seeks help

Tue, 06/19/2018 - 04:44

hi all,

i'm quite new to xcode and am just learning swift. i have an idea for an app but am stuck at building it. i want to start off with a text field where the user can enter a number based on which a calculation is made in the background displaying a result based on different variables. i would be happy if experienced coders could maybe guide me a little in the right direction.

thank you

submitted by /u/ramseierf
[link] [comments]

SwiftyJSON question

Mon, 06/18/2018 - 16:34

I am in the midst of an iOS course on Udemy. For this project I am trying to learn how to login users. We are using the SwiftyJSON library. I have a piece of code that doesn't work on my screen, but does work on his. My only idea is that the video is a few months old and there have been updates. Please give me advice I have been making a lot of progress on this course and do not want to stop! Thanks in advance.

The error

submitted by /u/cupojoe4me
[link] [comments]

I might be in over my head, 5 minute guidance would be much appreciated.

Mon, 06/18/2018 - 16:32

Hey guys, I've been learning to code after work for about a year now and with 120 hours of practice under my belt I've lost my job and am looking for another one. One of my friends volunteered me to help one of their associates out with building a pretty simple app to help me start out my portfolio and make a few bucks. I'm up for the challenge but I want to make sure I do a good job.

The Project

Make a mobile version of their Wordpress site with as much functionality as I can bring over. This includes....

  1. Blog Posts (I believe that I can use an API to put this on a table few)
  2. Calculators (I can either link to their page online or rebuild it in swift)
  3. Premium features (This one stumps me a bit, I imagine I can have them log in to the account that they would use for the Wordpress and have that decide whether they can access that content or whether the app should advertise a premium membership for those who don't have one.)

All this being said I'm not looking for someone to do any work for me, if someone could point me in the direction of a youtube video or online coursework that walks through this process or one like it that would be amazing but most of the videos I'm finding offer a Wordpress > app modification service.

submitted by /u/TheMaguffin
[link] [comments]

What is your minimum deployment target policy?

Mon, 06/18/2018 - 16:11

Some people do n - 2, where n is the latest iOS version. What's yours?


submitted by /u/KTheRedditor
[link] [comments]

First App - Looking for feedback

Mon, 06/18/2018 - 15:52

I'm looking feedback on my first app I've released / possibly people who might find it useful.

It's designed for companies that might have critical issues during off hours (tech companies, etc) so that people don't have to dig through emails and find people to contact when things go down.

One of my use-cases I had in mind is a site going down, and contacting the people who need to know about it during off hours ASAP. It allows for text, email, push, and phone (via twilio, so it's a robot voice, but whatever, it works).

It's also available on Android.

So, especially people who work in tech companies, give it a spin and let me know what you think. I'd like to put in a "intro" view into the app to onboard people, but all the functionality is there.

submitted by /u/rockspringtech
[link] [comments]

Certain iOS simulators aren’t booting

Mon, 06/18/2018 - 14:36

I tried to use liveview in playgrounds and I noticed that it didn’t run, it displayed a black screen. Later on I tried to run an iOS project on an iPhone x simulator, but it stayed black(wouldn’t even show the boot logo). Same goed for the plus model of the 7 and 8. The normal 7 and 8 model are working strangely. Anyone who could help me out with this?

Below is a picture of the problem

submitted by /u/Swift3004
[link] [comments]