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 | |
extension UITableView { | |
func nextResponder(index: Int){ | |
var currIndex = -1 | |
for i in index+1..<index+100{ | |
if let view = self.superview?.superview?.viewWithTag(i){ | |
view.becomeFirstResponder() |
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
### Carthage integrate in your project | |
1) #Download the latest release of Carthage from https://github.com/Carthage/Carthage/releases. Select the most recent build, then under Downloads select Carthage.pkg. | |
2) #Double-click Carthage.pkg to run the installer. Click Continue, select a location to install to, click Continue again, and finally click Install. | |
#if Carthage.pkg not installed | |
#Note: When you may see a message stating “Carthage.pkg can’t be opened because it is from an unidentified developer.” Open the finder Right click on Carthage.pkg --- > openwith ----> Installer(default ) | |
Installation process start select a location to install, Click to continue | |
And you done,To check that Carthage installed correctly, open Terminal and run the following command: |
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
# Convert the .p12 file into a .pem file: | |
$ openssl pkcs12 -nocerts -in Filename.p12 -out FileName.pem | |
# Convert the .cer file into a .pem file: | |
$ openssl x509 -in apns_development.cer -inform der -out PushCert.pem | |
# Finally, combine the certificate and key into a single .pem file | |
$ cat PushCert.pem FileName.pem > final.pem | |
# Finally use final.pem or FileName.pem |
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
// | |
// AlertExtension.swift | |
// | |
// | |
// Created by vikrant-Ios on 01/12/17. | |
// Copyright © 2017 vikrant-Ios. All rights reserved. | |
// | |
import Foundation |
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
@IBOutlet weak var myCustomView: UIView! { | |
didSet { | |
myCustomView.backgroundColor = UIColor.blue | |
myCustomView.layer.cornerRadius = myCustomView.bounds.width / 2 | |
} | |
} |
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
POD Install | |
Step [ 1 ] Open terminal and type: | |
sudo gem install cocoapods | |
Gem will get installed in Ruby inside System library. Or try on 10.11 Mac OSX El Capitan, type: | |
sudo gem install -n /usr/local/bin cocoapods | |
If there is an error "activesupport requires Ruby version >= 2.xx", then install latest activesupport first by typing in terminal. |