This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
how to build xcode project | |
Here is some instruction to install app directly from mac. but only install those devices which provisioning profile is install in app. | |
Install App directly from Mac. | |
1. open your xcode project | |
2. click product tab | |
3. click archive | |
4. click export | |
5. select save for development deployment | |
6. click next button | |
7. select development team account |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function uuid() | |
{ | |
var char = '0123456789abcdef'.split(''); | |
var uuid = [], rnd = Math.random, r; | |
uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-'; | |
uuid[14] = '4'; // version 4 | |
for (var i = 0; i < 36; i++) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIView | |
{ | |
func getCropedImage(frame: CGRect) -> UIImage | |
{ | |
UIGraphicsBeginImageContextWithOptions(frame.size, false, 0) | |
drawHierarchy(in: CGRect(x: -frame.origin.x, y:-frame.origin.y, width: self.bounds.size.width, height: self.bounds.size.height), afterScreenUpdates: true) | |
let snapshotImage = UIGraphicsGetImageFromCurrentImageContext()! | |
UIGraphicsEndImageContext() | |
return snapshotImage | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func FbLoginButton() { | |
if (FBSDKAccessToken.current() != nil) | |
{ | |
// User is logged in, do work such as go to next view controller. | |
print("already login") | |
self.getFBUserData() | |
}else{ | |
NewerOlder