跳到主要內容

Install CocoPods + Sharing with FaceBook and Twitter



Install CocoPods :


https://cocoapods.org/

https://www.appcoda.com.tw/cocoapods/




Sharing with FaceBook and Twitter :

1. SLComposeVC
https://www.youtube.com/watch?v=wOD1eirtl4k&t=4s

2. ActivityViewController


3. Facebook SDK

(more clear)
https://developers.facebook.com/docs/sharing/ios#model

https://developers.facebook.com/docs/swift/getting-started



helpers :

https://www.itstrike.cn/Question/824ede30-461d-4c32-bbad-04b572249ecc.html

error issues :

1. "canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed."



留言

這個網誌中的熱門文章

Deploy Project to AWS EC2

Step 1 : build Amazon EC2 instance  Download the .pem file Select the instance you like to connect  Referance : http://dez.logdown.com/posts/2017/04/07/aws-ec2-deploy-nodejs-web-app Step 2 : connect to AWS EC2 Create a directory by Terminal: # mkdir -p ~/.ssh Move the download .pem file to the .ssh directory we just created:  # mv ~ /Downloads/[key name].pem ~/ssh change the permissions of the .pem file so only the root user can read it: #chmod 400 ~/.ssh/[key name].pem create a config file: # vim ~/.ssh/config Enter the following text into that config file Host *amazonaws.com IdentityFile ~/.ssh/[key name].pem User  ec2-user  Use the ssh command with your public DNS hostname to connect to your instance # ssh [public DNS] Referance : https://docs.aws.amazon.com/en_us/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html