This file contains 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
// Custom SFSafariViewController | |
import UIKit | |
import SafariServices | |
class IDMSafariViewController : SFSafariViewController { | |
var edgeView: UIView? { | |
get { | |
if (_edgeView == nil && isViewLoaded()) { | |
_edgeView = UIView() |
This file contains 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
============================= | |
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html | |
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html | |
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html | |
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html | |
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html | |
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html | |
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html |
This file contains 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
struct Hello { | |
var parent : Hello? = nil | |
var children : [Hello] = [] | |
} | |
// Error : Recursive value type 'Hello' is not allowed |
This file contains 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 productRquestStarted(productReferenceName : String) | |
{ | |
if (SKPaymentQueue.canMakePayments()) // 1 | |
{ | |
if productReferenceName == PRODUCT_IDENTIFIERS.k_RESTORE_WORDS_PRODUCT_IDENTIFIER.rawValue // 2 | |
{ | |
// You can call your function for restoring purchases here. | |
} | |
else | |
{ |
This file contains 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
private enum ProductRefereneNames : String | |
{ | |
case HundreadNotes = "HundreadNotesSwiftCoderClub" | |
// Just like this put all your product identifiers here | |
} |
This file contains 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
import Foundation | |
import UIKit | |
import MultipeerConnectivity | |
//MARK: MultiPeerFrameworkHelper | |
class MultiPeerFrameworkHelper : NSObject | |
{ | |
// Peer Id | |
var myOwnPeerId : MCPeerID! | |
This file contains 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
import MultipeerConnectivity // Importing Framework |
This file contains 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
import Foundation | |
import UIKit | |
import MultipeerConnectivity | |
//MARK: MultiPeerFrameworkHelper | |
class MultiPeerFrameworkHelper : NSObject | |
{ | |
....... // More code | |
This file contains 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
//MARK: MCNearbyServiceAdvertiserDelegate | |
extension MultiPeerHelper : MCNearbyServiceAdvertiserDelegate | |
{ | |
// Incoming invitation request. Call the invitationHandler block with YES | |
// and a valid session to connect the inviting peer to the session. | |
func advertiser(advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: NSData?, invitationHandler: (Bool, MCSession) -> Void) | |
{ | |
invitationHandler(true, self.session) // Accepting an invitation | |
} |
This file contains 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
import Foundation | |
import UIKit | |
import MultipeerConnectivity | |
//MARK: MultiPeerFrameworkHelper | |
class MultiPeerFrameworkHelper : NSObject | |
{ | |
....... // More code | |