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
| //logic | |
| NSMutableArray* tempArray = [NSMutableArray new]; | |
| for (NSDictionary* custumerDetails in tempArrayCustomers) { | |
| NSMutableDictionary *prunedDictionary = [NSMutableDictionary dictionary]; | |
| for (NSString * key in [custumerDetails allKeys]) | |
| { | |
| if (![[custumerDetails objectForKey:key] isKindOfClass:[NSNull class]]){ |
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 Array where Element:Equatable { | |
| func removeDuplicates() -> [Element] { | |
| var result = [Element]() | |
| for value in self { | |
| if result.contains(value) == false { | |
| result.append(value) | |
| } | |
| } | |
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)setContentSizeForScrollView{ | |
| NSArray* scrollViewSubViews = [self.rootScrollView subviews]; | |
| CGFloat scrollViewHeight = 0; | |
| for (UIView* views in scrollViewSubViews) { | |
| scrollViewHeight += views.frame.size.height; | |
| } | |
| [self.rootScrollView setContentSize:CGSizeMake(self.view.frame.size.width, scrollViewHeight)]; |
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
| //prints the current fucntion in a readable format | |
| printf(__PRETTY_FUNCTION__); | |
| // | |
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
| #define isNSNull(value) [value isKindOfClass:[NSNull class]] |
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
| //topLeft Corner | |
| nextCatBtn.backgroundColor = .clear | |
| let nextBTNborderLayer = CAShapeLayer() | |
| nextBTNborderLayer.fillColor = hexStringToUIColor(hex: "#DB3263").cgColor | |
| nextBTNborderLayer.borderWidth = 2.0 | |
| let nextBtnBorderPath = UIBezierPath(roundedRect: previousCatBtn.bounds, | |
| byRoundingCorners: [.topLeft], | |
| cornerRadii: CGSize(width:10.0, height: 10.0)) |
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 Array where Element:Equatable { | |
| func removeDuplicates() -> [Element] { | |
| var result = [Element]() | |
| for value in self { | |
| if result.contains(value) == false { | |
| result.append(value) | |
| } | |
| } | |
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
| // | |
| // CSKoladaView.swift | |
| // SellQwik | |
| // | |
| // Created by Chaitanya Soni on 16/04/19. | |
| // | |
| import Foundation | |
| class CSKolodaCardView{ | |
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
| // | |
| // fillterDataClass.m | |
| // SellQwik | |
| // | |
| // Created by Admin on 27/03/19. | |
| // | |
| #import "fillterDataClass.h" | |
| #import "CatalogCategoryAssignedProductsData.h" |
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
| UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"JBlues" message:@"Please login to see products" preferredStyle:UIAlertControllerStyleAlert]; | |
| UIAlertAction *okAct = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]; | |
| [alert addAction:okAct]; | |
| [self presentViewController:alert animated:true completion:nil]; |
OlderNewer