User Registration and Login example with Swift + Parse

preview_player
Показать описание
For my complete video course on this topic please visit this page:

In this example I am showing how to integrate your mobile app with Parse cloud service and store user login details in Parse cloud storage.

Рекомендации по теме
Комментарии
Автор

Solution:
for some reason for the error that I had, I just deleted the ? after Bool and changed println to print. It solved the problem right there:
" {
(succeeded: Bool, error: NSError?) -> Void in print ("User successfully registered.")
"
Thank you for your tutorial :)

Duckieexpression
Автор

Deer Mr.Sergey,
Thank you very much, I respect YOU!
You are one of the best .

minuturcin
Автор

Dear Sergey,
I set deployment target 7.1 and because of that I encountering that errors .
I solve the problem, thank you very much.
Regardig the PDF  saving for me is very urgent matter  and I do not find documentations  for it. I apprecaite if you sending something on email which i can apply very quick.

Thank you again,
respect,
Minu

minuturcin
Автор

Thank you very much for this video! this is exactly what i was searching for!

irinabelaya
Автор

Good morning,
Thank you for answering to me . 
When meet the function display myalert  app stop.
Pleas can you show us how we can save  some container, text field or  label in  pdf format .
Or how we can insert itext i n our app.

minuturcin
Автор

Once the user is logged in, you are getting to the protected view page but in video 1, you have a segue that automatically goes to a specific view page. In essence, you haven't implemented the code where if the user login is successful, it should go to a landing page in this video example. How easy is parse to create tables with referential integrity between tables?

namasthenova
Автор

hey sergey, sorry for being overwhelming in my last request, i understand your busy and its very nice of you to take the time to help people. i think i was able to narrow down the problem.  it looks like its a result of this line of code

PFUser.logInWithUsernameInBackground(userEmail, password: userPassword) {

the error says:Cannot invoke with an argument list of type '(String!, password: String!, (PFUser!, NSError!) -> Void)'


any ideas?

AlterTheYoung
Автор

Hi, Sergey! Thanks a lot for this video. I'm using parse to store my data in cloud. When I create a new instance, I will get a new random objectId, and I only can check it on my browser. Is there someway that I can use this new objectId to search, update and get the data from the cloud instead of using "0394xserg", something like that?

bayiqiao
Автор

hello sergey there is a new option for swift in parse.com is that same way to integrate???

satyabratajjjjjjjjjj
Автор

If you download the github project, and you get the error "User cannot be saved unless they are already signed up. Call signUp first."

Its because the function, should actually be "signUpInBackgroundWithBlock"

LekanAdeyeri
Автор

hey Sergey, is there a certain place that the login view controller code should be for example like "below view did load?  im getting errors (=,   also, can you mention any changes to the code that might be affecting me please?

AlterTheYoung
Автор

Hey Sergey how do i print out an alert if email or username exists?, i am already aware that parse does it by itself but i want to show it for the user so they also know the issue

lifeofeddy
Автор

Hi Sergey, i have some problem with this. Can you help me? Thank you

Cannot invoke with an argument list of type '(String!, password: String!, (PFUser!, NSError!) -> Void)'

funnydeo
Автор

Surafel Tensai For some reason I cannot reply to your comments. Try using question mark after NSError instead of exclamation mark. like this: NSError?

SergeyKargopolov
Автор

Hello,

I am hitting error with this line: (success: Bool, error: NSError?) --> void in

The error is: Cannot convert value of type '(Bool, NSError!) -> Void' to expected argument type 'PFBooleanResultBlock?"

Please help.

Thanks

kaizen
Автор

Hi Sergey, I post this question in about 6 days a go, and not sure if you were able to see it on your side.... 

Thanks for the great information, I'm having a small problem, and this is the error message, What should I do? 

Cannot invoke 'signUpInBackgroundWithBlock' with an argument list of type '((Bool!, NSError!) -> Void)'

surafelt
Автор

If I was able to set up my project in Parse as Swift instead of Objective-C do I still need to use the connector?

Tripinfall
Автор

I have everything done, one problem I get is when I do not show the @ symbol when i try to log in and Parse gives me code 125 invalid email address error, Can you tell me how I can implement this error so users will see the alert message?

Hakusword
Автор

hey Sergey, im having some issues converting from storing user data locally to parse.  i am getting an error on this code



{ (success: Bool!, error: NSError!) -> Void in
        
                
                println("User successfully regiistered")
            
        }
               
the error says "cannot invoke with n argument list of type  ((Bool!, Nserror!)) -> Void


please help (=

AlterTheYoung
Автор

Thanks for the great information, I'm having a small problem, and this is the error message, What should I do? 

Cannot invoke 'signUpInBackgroundWithBlock' with an argument list of type '((Bool!, NSError!) -> Void)'

surafelt