Code

AroundMe | iOS Universal Geolocated Questions App Template (Swift)

AroundMe | iOS Universal Geolocated Questions App Template (Swift)














Feb 8th 2018
• Added these 2 lines of code into viewDidLoad() in QuestionDetails.swift, in order to prevenmt a crash while using the predictive toolbar over the keyboard:
    commentTxt.autocorrectionType = .no
    commentTxt2.delegate = self 
Dec 7th 2017
• Added a few lines of code in the 'signupButt()' method in SignUp.swift, in order to save a default avatar image in your Parse Dashboard -> User class
Nov 19th 2017
• Wrapped the placemarks instances into an IF stament in Home.swift -> 'addPinsOnMap()' method, in order for the app not to crash in case of nil placemarks form the GeoCoder:
    if placemarks != nil {
        let placeArray:[CLPlacemark] = placemarks!
        var placemark: CLPlacemark!
        placemark = placeArray[0]

        let city = placemark.addressDictionary?["City"] as? String ?? "" 
        let country = placemark.addressDictionary?["Country"] as? String ?? "" 

        // Set Subtitle
        pointAnnotation.subtitle = "\(city) - \(country)" 
    }

• Removed 'characters.' in this line of code in Configs.swift:
        return abbrev.enumerated().reversed().reduce(nil as String?) { accum, tuple in
Oct 6th 2017
• Edited the Location Privacy Usage keys into Info.plist. 
So right-click on Info.plist in Xcode, Open As -> Source code, and replace the existing <key>NSLocation... rows with this code:
    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>This app needs your current location in order to find Questions around you</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>This app needs your current location in order to find Questions around you</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>This app needs your current location in order to find Questions around you</string>
    <key>NSLocationUsageDescription</key>
    <string>This app needs your current location in order to find Questions around you</string>

In this way the Location permission alert will show up on devices with iOS versions older than iOS 11
Sep 26th 2017
• Removed the UIView on the bottom of the AskQuestion controller in Storyboard and its IBOutlets declarations in AskQuestion.swift.
• Added a new questionImg instance of UIImageView and a keyboard toolbar code in viewDidLoad() in AskQuestion.swift, in order to show the keyboard toolbar on iOS 11
• Applied a similar update for the QuestionDetails controller as well, and its relative swift file
• Removed 'keyboardWillShow()' method in QuestionDetails.swift and AskQuestion.swift, as well as their NSNotificationCenter instances in 'viewDidLoad()'
Sep 22nd 2017
• Updated to Xcode 9, Swift 4
• Edited Account.swift, moved the locationManager initialization code from 'viewDidLoad()' into a new function called 'getCurrentLocation()'.
• Edited the 'segmenteControlChanged()' method
• Added a 1125x2436px png image (iPhone X launch image) into Assets.xcassets -> Brand Assets image set
• Adjusted the tabBarView's height to 58px and other views positions in all controllers in the Storyboard, because of iPhone X layout 
• Unchecked the Runtime API Checking in the Scheme -> Diagnostics, accordignly to this post: https://stackoverflow.com/a/44392584/3724800
Sept 1st 2017
• Initial release | XCode 8.3.x project, Parse SDK hosted on back{4}app




AroundMe is a Universal App Template where you can post geolocated questions by choosing the location on a map, comment other users’ questions and award Thank you’s points and badges, as well as say thanks to other user’s comments.
This app is useful for all those ones who need to find help nearby, lost something, looking for places around their area or just socialize and find new friends while you’re on vacation in a certain place.
Users can comment, favorite and share questions, as well as report inappropriate/offensive comments/posts.
AroundMe includes a Settings screen where you can edit your own Profile, rate the app on the App Store and follow your social networks pages, as well as read the terms of Use and contact the Admin of the app.

There’s also a nice set of Badges that will be shown on the top of the Profile screens based on the Thank You’s you’ve received for your own comments. This app includes a Report inappropriate content feature, embedded iOS Map and Terms of User HTML file.

Since its backend is by Parse you don’t have to buy any domain/hosting, there are NO PHP files to upload to a web server so you’ll save some money for server side.

AroundMe is a native XCode project, Swift language, Storyboard, Universal, super easy to customize, backend with Parse SDK hosted on http://back4app.com




I’m new to Xcode UI interface, any help?

Sure, start by reading this tutorial, it will surely help you get familiar with Xcode and its UI interface: https://hubpages.com/technology/iOS-About-Xcode-and-its-interface

About Parse SDK and back4app

Read this article for more info about back4app and Parse SDK: https://hubpages.com/technology/Parse-SDK-will-not-shutdown-in-thanks-to-back4app

Can I host Parse Server on my own server?

Yes, although I don’t provide support for the setup process, you can read the official Guide here: http://parseplatform.org

I get a Code signing error in Xcode 8.x

That’s a bug of Xcode 8 with macOS Sierra, check this sample video to see how to fix it: https://youtu.be/z2LemT1_LqA

How to remove AdMob banner ads

Check this video out to see how to remove the code that shows AdMob banners: https://youtu.be/e-HQYnta2Jg Keep in mind that you must repeat the shown steps for every .swift file that contains this line on the top:
import GoogleMobileAds

What about free support for this template?

I can offer free support for bugs encountered in the original code. Instead, if you’ve edited the code and messed something up with it, I may apply some fee to fix it either via TeamViewer or by checking your app project files directly on my computer.

Should I use the latest version of Xcode to edit this template?

Yes, I always update my apps to the latest version of the IDE.






  • XCode 9.x project – Swift – 64bit
  • iOS 8+ – Universal – Storyboard
  • AdMob banners
  • Post questions with image and geolocation attachments
  • Push Notifications for Favorites, Comments and Thank you’s
  • Comment, favorite and share questions
  • Delete and Report comments/users options
  • PDF User Guide and PSD included
  • Easy to customize | Well commented code


  • Apple Mac with its latest OS version installed
  • The latest version of Xcode and some knowledge about its UI interface
  • Photoshop or any other image editor software
  • An Apple Developer account to submit apps to the App Store
  • An AdMob account to generate your own banner UNIT ID
  • A free account on https://back4app.com and/or https://adminca.com









by
by
by
by
by
by