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
| import UIKit | |
| class SwiftTableViewController: UITableViewController { | |
| init(coder aDecoder: NSCoder!) { | |
| super.init(coder: aDecoder) | |
| } | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| } | |
| } |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta name="generator" content="Bluefish 2.2.6" > | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Bootstrap 101 Template</title> | |
| <link rel="stylesheet" href= |
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
| - (IBAction)buyButtonTapped:(id)sender{ | |
| param = [[STPCardParams alloc]init]; | |
| param.number = txt_cc_no.text; | |
| param.cvc = txt_cc_cvvno.text; | |
| param.expMonth =[self.selectedMonth integerValue]; | |
| param.expYear = [self.selectedYear integerValue]; | |
| if ([self validateCustomerInfo]) { |
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
| - (void)bannerTapped:(UIGestureRecognizer *)gestureRecognizer; | |
| // ------------ | |
| touchableImage.image = [UIImage imageNamed:@"touchableImage.png"]; | |
| UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(bannerTapped:)]; | |
| singleTap.numberOfTapsRequired = 1; | |
| singleTap.numberOfTouchesRequired = 1; | |
| [touchableImage addGestureRecognizer:singleTap]; |
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
| NSMutableAttributedString *originalMutableAttributedString = //your string… | |
| NSRange originalRange = NSMakeRange(0, originalMutableAttributedString.length); | |
| [originalMutableAttributedString setAttributes:@{} range:originalRange]; |
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
| [originalMutableAttributedString enumerateAttributesInRange:originalRange | |
| options:kNilOptions | |
| usingBlock:^(NSDictionary *attrs, NSRange range, BOOL *stop) { | |
| [attrs enumerateKeysAndObjectsUsingBlock:^(NSString *attribute, id obj, BOOL *stop) { | |
| [originalMutableAttributedString removeAttribute:attribute range:range]; | |
| }]; | |
| }]; |