App ID
and Client Key
in the Configurations.swift file:
let PARSE_APP_ID = "pwkmVrsiHTp2wN3q3UXUBiOwiE5C31atCq2CihPy" let PARSE_CLIENT_KEY = "ugVWfJTY4azulDWoXmHVnkHkidlDzw6koSzrEVha"Great, Your app is now connected to your own database!
Wallpapers
classes in your database, as well as a demo row.viewDidLoad()
function:
createWallpapersClass()Then you can enter your own Parse Dashboard, refresh it and check the brand new
Categories
and Products
classe with its demo data.
Info.plist
file - you can find it in the files list on the left-side panel - and set the text you wish in the Value
column of the Privacy rows.Main.storyboard
and you can find it in the list of file that are shown in left-side panel of the Xcode window..swift
files.
tou.html
file form the left-side panel's list in Xcode - it's located into the Intro_Login_SignUp
folder - and edit it accordingly to your own Terms of Service and Privacy Policy. Also replace the APP_NAME
words with the new name you assigned to your App.
"mailto:[email protected]">[email protected]
tou.html
file, so you must replace [email protected] with a valid email adress where people can contact you for any question, feedback or in case they want to delete their account.
We're always looking for new content to add in our app, and we would love to see and review your work! Please answer the few questions below, it'll take the time of a snap ;)
+
button and edit is as shown below:
+
button again, and edit is as shown below:
+
button again, and edit is as shown below:
Send form
tab check the Shorten URL checkmark and copy the provided link:
Configuration.swift
and replace the string of the GOOGLE_FORM_LINK variable with your own Google Form's link:
let GOOGLE_FORM_LINK = "https://goo.gl/forms/d1RelRwhVqEtOjA93"
objectId
value, select that row and click Edit -> Delete this row
.
objectId
value you've previously noted in all the other Classes of your database, check out all the rows until you'll find that objectId
and delete it - this is in case it appears into some Array type columns.
Configurations.swift
filelet APP_NAME = "WallUp"
App Id
and Client Key
that you will get from the back4app website after creating your own Parse App:
let PARSE_APP_ID = "K7SCPO9S6zywk3DMoEskABkJCOOWNkwx6Lfew2hy" let PARSE_CLIENT_KEY = "kC36ZLG7UWs31cPpLUN3M8RkS6K6BK544MFYm3hD"
let ADMOB_INTERSTITIAL_UNIT_ID = "ca-app-pub-3940256099942544/1033173712"
Info.plist
with your own App ID:
RGB
values of the following variables as you wish, change the numbers before /255
. The main color of the app and some UI will be affected by your change:
let MAIN_COLOR = UIColor(red: 93/255, green: 194/255, blue: 230/255, alpha: 1.0) let LIGHT_GRAY = UIColor(red: 243/255, green: 243/255, blue: 243/255, alpha: 1.0)
.ttf
or .otf
font file into the left-side panel in Xcode and click the Finish button in the popup that will show up:
Then select the Label, Button, TextFiled or textView you want to change font to, click the [T]
icon on the right-side Attributes inspector panel and select the font you want in the dropdown list:
let APP_STORE_LINK = "https://itunes.apple.com/us/app/id333903271"
let SUPPORT_EMAIL_ADDRESS = "[email protected]"
var categoriesArray = [ /* c_0 */ "Starter Pack__This pack is a great starting point to find cool wallpapers for your device.__unsplash.com", /* c_1 */ "Abstract__Awesome collection of abstract patterns and pictures, liquid sensations for your device.__unsplash.com", /* c_2 */ "Mextures Collective__This pack showcases high-def wallpapers provided by the Mextures Collective community.__mexturescollective.com", /* c_3 */ "Infinite Space__A fresh collection of pictures from outer space. Make your device stellar.__unsplash.com", /* c_4 */ "Sky Collection__A collection of sky photos.__papers.co", /* c_5 */ "Blurred Art__Nice variety of colored and blurred wallpapers.__papers.co", // ADD CATEGORIES HERE (OR EDIT THE ONES ABOVE) ]You may notice that there's a comment on the left side of each item. That indicates the name of the image relative to the category.
__
. That's needed for the app show data.categoriesArray
which must contain the name, description and website link where you've picked the image from."Awesome Art__A brief description of this category.__unsplash.com",The website link must not have any www or http:// or https:// prefix, it must be only the domain name!
/* c_6 */
comment before the string, so it'll look like this:
/* c_6 */ "Awesome Art__A brief description of this category.__unsplash.com",That
/* c_6 */
comment is the name of the new image you must create into the Assets.xcassets folder. Check the existing ones in the CATEGORIES to see how they look.
c_6
:
.jpg
images, one must be 960x640px and the other one 640x427px, they are the category image that will show up in the Home screen of the app.Intro
screen will show up and you'll be able to Sign Up in order to create a test account and start testing the app.
Core Settings
box:
App Id
and Client Key
, and replace the strings into Configurations.swift
- as mentioned already in the Quick Start section of this guide:
let PARSE_APP_ID = "pwkmVrsiHTp2wN3q3UXUBiOwiE5C31atCq2CihPy" let PARSE_CLIENT_KEY = "ugVWfJTY4azulDWoXmHVnkHkidlDzw6koSzrEVha"
main.js
file in the Cloud Code section.App ID
and Client Key
strings into Configurations.swift and you'll be fine.
+ Add row
category
column and type a category name and hit Enter - it must perfectly match one of the names in your categoriesArray
in the Configurations.swift file:
phone
column, click the Upload file button and select the jpg image of your wallpaper.
likes
column and type 0:
likedBy
column and type []:
comments
column and type 0:
isOfTheDay
column and select either False if you don't want to set this wallpaper as Wallpaper of the day, or True if you want it to be shown as Wallpaper of the day in the Home screen:
isOfTheDay
cell into True and switch the old wallpaper's row into False, in order to offer a different wallpaper each day.
iOS
:
Bundle Identifier
you have set in the General tab in Xcode and paste it in the Bundle ID field of the iOS section.Yes
and click the Save Changes button.
Facebook Login
box:
Facebook App ID
in the text box and click the +
button to add it to your Parse App.
Info.plist
from the files list on the left-side panel.URL types
row, the Item 0
row, the URL Schemes
row and replace the App Id string in that row with the one of your Facebook App - the App ID you've copied before.
fb
, check the existing demo one as an example.FacebookAppID
row too, this time you don't have to put the fb
prefix.FacebookDisplayName
row.
APP ID
.
main.js
file in the Cloud Code section on back4app.showInterstitialXcode will show you a list of
swift
files where such code is located. Click on each row and just comment that line of code in each the swift
file: