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 tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | |
let cellIdentifier = "CellIdentifier" | |
let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier) ?? UITableViewCell(style: .value1, reuseIdentifier: cellIdentifier) | |
let label = UILabel() | |
label.textAlignment = .right | |
label.backgroundColor = UIColor.clear | |
label.textColor = UIColor.gray | |
label.translatesAutoresizingMaskIntoConstraints = false | |
cell.detailTextLabel?.text = "TEST" |
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
+ (void)showKeychainKeys { | |
NSMutableDictionary *query = [NSMutableDictionary dictionaryWithObjectsAndKeys: | |
(__bridge id)kCFBooleanTrue, (__bridge id)kSecReturnAttributes, | |
(__bridge id)kSecMatchLimitAll, (__bridge id)kSecMatchLimit, | |
nil]; | |
NSArray *secItemClasses = [NSArray arrayWithObjects: | |
(__bridge id)kSecClassGenericPassword, |
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
// GOAL | |
// viewControllerA | |
// |_ viewControllerB | |
UIViewController *viewControllerA = ...; | |
UIViewController *viewControllerB = ...; | |
// Adding | |
[viewControllerA addChildViewController:viewControllerB]; | |
[viewControllerA.view addSubview:viewControllerB.view]; |