├── .swift-version ├── AZTableViewExample ├── Pods │ ├── Target Support Files │ │ ├── AZTableView │ │ │ ├── AZTableView.modulemap │ │ │ ├── AZTableView-dummy.m │ │ │ ├── AZTableView-prefix.pch │ │ │ ├── AZTableView-umbrella.h │ │ │ ├── AZTableView.xcconfig │ │ │ ├── ResourceBundle-AZTableViewElements-Info.plist │ │ │ └── Info.plist │ │ └── Pods-AZTableViewExample │ │ │ ├── Pods-AZTableViewExample.modulemap │ │ │ ├── Pods-AZTableViewExample-dummy.m │ │ │ ├── Pods-AZTableViewExample-umbrella.h │ │ │ ├── Pods-AZTableViewExample.debug.xcconfig │ │ │ ├── Pods-AZTableViewExample.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-AZTableViewExample-acknowledgements.markdown │ │ │ ├── Pods-AZTableViewExample-acknowledgements.plist │ │ │ ├── Pods-AZTableViewExample-frameworks.sh │ │ │ └── Pods-AZTableViewExample-resources.sh │ ├── Manifest.lock │ └── Local Podspecs │ │ └── AZTableView.podspec.json ├── AZTableViewExample.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── project.pbxproj ├── Source │ └── AZ-TableViewController │ │ ├── AZ-TableViewController.xcodeproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── project.pbxproj │ │ ├── AZ-TableViewController │ │ ├── Classes │ │ │ ├── Utility.swift │ │ │ ├── Loading&ErrorViews │ │ │ │ ├── LoadingTableViewCell.swift │ │ │ │ ├── ErrorView.xib │ │ │ │ ├── NoResultView.xib │ │ │ │ ├── LoadingTableViewCell.xib │ │ │ │ └── LoadingView.xib │ │ │ └── AZTableViewController.swift │ │ ├── Assets.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ ├── FakeService.swift │ │ ├── AppDelegate.swift │ │ └── ViewController.swift │ │ ├── AZTableView.podspec │ │ ├── LICENSE │ │ └── README.md ├── AZTableViewExample.xcworkspace │ └── contents.xcworkspacedata ├── Podfile ├── Podfile.lock └── AZTableViewExample │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Info.plist │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── FakeService.swift │ ├── AppDelegate.swift │ └── ViewController.swift ├── AZ-TableViewController.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── AZ-TableViewController ├── Classes │ ├── Utility.swift │ ├── Loading&ErrorViews │ │ ├── LoadingTableViewCell.swift │ │ ├── ErrorView.xib │ │ ├── NoResultView.xib │ │ ├── LoadingTableViewCell.xib │ │ └── LoadingView.xib │ └── AZTableViewController.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── FakeService.swift ├── AppDelegate.swift └── ViewController.swift ├── AZTableView.podspec ├── LICENSE ├── .gitignore └── README.md /.swift-version: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/AZTableView/AZTableView.modulemap: -------------------------------------------------------------------------------- 1 | framework module AZTableView { 2 | umbrella header "AZTableView-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/AZTableView/AZTableView-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_AZTableView : NSObject 3 | @end 4 | @implementation PodsDummy_AZTableView 5 | @end 6 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AZTableViewExample { 2 | umbrella header "Pods-AZTableViewExample-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /AZ-TableViewController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AZTableViewExample : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AZTableViewExample 5 | @end 6 | -------------------------------------------------------------------------------- /AZTableViewExample/AZTableViewExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/AZTableView/AZTableView-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /AZTableViewExample/AZTableViewExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /AZTableViewExample/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'AZTableViewExample' do 5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for AZTableViewExample 9 | 10 | pod 'AZTableView', :path => '../AZTableViewExample/Source/AZ-TableViewController' 11 | 12 | end 13 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/AZTableView/AZTableView-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double AZTableViewVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char AZTableViewVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /AZTableViewExample/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AZTableView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - AZTableView (from `../AZTableViewExample/Source/AZ-TableViewController`) 6 | 7 | EXTERNAL SOURCES: 8 | AZTableView: 9 | :path: "../AZTableViewExample/Source/AZ-TableViewController" 10 | 11 | SPEC CHECKSUMS: 12 | AZTableView: 9271fcaac7cf5957e447befb02213f49169b7a0f 13 | 14 | PODFILE CHECKSUM: 372c2428f7a1ef28db1d266840ca079813e2d1fb 15 | 16 | COCOAPODS: 1.2.1 17 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AZTableView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - AZTableView (from `../AZTableViewExample/Source/AZ-TableViewController`) 6 | 7 | EXTERNAL SOURCES: 8 | AZTableView: 9 | :path: "../AZTableViewExample/Source/AZ-TableViewController" 10 | 11 | SPEC CHECKSUMS: 12 | AZTableView: 9271fcaac7cf5957e447befb02213f49169b7a0f 13 | 14 | PODFILE CHECKSUM: 372c2428f7a1ef28db1d266840ca079813e2d1fb 15 | 16 | COCOAPODS: 1.2.1 17 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_AZTableViewExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AZTableViewExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /AZ-TableViewController/Classes/Utility.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Utility.swift 3 | // AZ-TableViewController 4 | // 5 | // Created by Muhammad Afroz on 7/31/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class Utility: NSObject { 12 | 13 | static func getBundle() -> Bundle { 14 | 15 | let podBundle = Bundle(for: AZTableViewController.self) 16 | 17 | let bundleURL = podBundle.url(forResource: "AZTableViewElements", withExtension: "bundle") 18 | return Bundle(url: bundleURL!)! 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/Classes/Utility.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Utility.swift 3 | // AZ-TableViewController 4 | // 5 | // Created by Muhammad Afroz on 7/31/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class Utility: NSObject { 12 | 13 | static func getBundle() -> Bundle { 14 | 15 | let podBundle = Bundle(for: AZTableViewController.self) 16 | 17 | let bundleURL = podBundle.url(forResource: "AZTableViewElements", withExtension: "bundle") 18 | return Bundle(url: bundleURL!)! 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/AZTableView/AZTableView.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/AZTableView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../Source/AZ-TableViewController 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /AZ-TableViewController/Classes/Loading&ErrorViews/LoadingTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LoadingTableViewCell.swift 3 | // AZ-TableViewController 4 | // 5 | // Created by Muhammad Afroz on 7/31/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class LoadingTableViewCell: UITableViewCell { 12 | 13 | override func awakeFromNib() { 14 | super.awakeFromNib() 15 | // Initialization code 16 | } 17 | 18 | override func setSelected(_ selected: Bool, animated: Bool) { 19 | super.setSelected(selected, animated: animated) 20 | 21 | // Configure the view for the selected state 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/Classes/Loading&ErrorViews/LoadingTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LoadingTableViewCell.swift 3 | // AZ-TableViewController 4 | // 5 | // Created by Muhammad Afroz on 7/31/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class LoadingTableViewCell: UITableViewCell { 12 | 13 | override func awakeFromNib() { 14 | super.awakeFromNib() 15 | // Initialization code 16 | } 17 | 18 | override func setSelected(_ selected: Bool, animated: Bool) { 19 | super.setSelected(selected, animated: animated) 20 | 21 | // Configure the view for the selected state 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AZTableView" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/AZTableView/AZTableView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "AZTableView" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /AZ-TableViewController/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AZTableView" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/AZTableView/AZTableView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "AZTableView" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /AZTableViewExample/AZTableViewExample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Local Podspecs/AZTableView.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AZTableView", 3 | "version": "0.1.0", 4 | "summary": "Automatic pagination handling and loading views", 5 | "description": "Automatic pagination handling\nNo more awkward empty TableView", 6 | "homepage": "https://github.com/AfrozZaheer/AZTableView", 7 | "platforms": { 8 | "ios": "8.0" 9 | }, 10 | "license": { 11 | "type": "MIT", 12 | "file": "LICENSE" 13 | }, 14 | "authors": { 15 | "AfrozZ": "afrozezaheer@gmail.com" 16 | }, 17 | "source": { 18 | "git": "https://github.com/AfrozZaheer/AZTableView.git" 19 | }, 20 | "resource_bundles": { 21 | "AZTableViewElements": [ 22 | "AZ-TableViewController/Classes/**/*.{xib}" 23 | ] 24 | }, 25 | "source_files": "AZ-TableViewController/Classes/**/*.{swift}" 26 | } 27 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /AZTableView.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | 4 | 5 | s.name = "AZTableView" 6 | s.version = "0.0.3" 7 | s.summary = "Automatic pagination handling and loading views" 8 | 9 | s.description = <<-DESC 10 | Automatic pagination handling 11 | No more awkward empty TableView 12 | DESC 13 | 14 | s.homepage = "https://github.com/AfrozZaheer/AZTableView" 15 | 16 | s.platform = :ios, "9.0" 17 | s.license = { :type => 'MIT', :file => 'LICENSE' } 18 | 19 | 20 | s.author = { "AfrozZ" => "afrozezaheer@gmail.com" } 21 | 22 | s.source = { :git => "https://github.com/AfrozZaheer/AZTableView.git" } 23 | 24 | s.resource_bundles = { 25 | 'AZTableViewElements' => ['AZ-TableViewController/Classes/**/*.{xib}'] 26 | } 27 | 28 | 29 | s.source_files = 'AZ-TableViewController/Classes/**/*.{swift}' 30 | 31 | end 32 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/AZTableView/ResourceBundle-AZTableViewElements-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleIdentifier 8 | ${PRODUCT_BUNDLE_IDENTIFIER} 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundleName 12 | ${PRODUCT_NAME} 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 0.1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZTableView.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | 4 | 5 | s.name = "AZTableView" 6 | s.version = "0.1.0" 7 | s.summary = "Automatic pagination handling and loading views" 8 | 9 | s.description = <<-DESC 10 | Automatic pagination handling 11 | No more awkward empty TableView 12 | DESC 13 | 14 | s.homepage = "https://github.com/AfrozZaheer/AZTableView" 15 | 16 | s.platform = :ios, "8.0" 17 | s.license = { :type => 'MIT', :file => 'LICENSE' } 18 | 19 | 20 | s.author = { "AfrozZ" => "afrozezaheer@gmail.com" } 21 | 22 | s.source = { :git => "https://github.com/AfrozZaheer/AZTableView.git" } 23 | 24 | s.resource_bundles = { 25 | 'AZTableViewElements' => ['AZ-TableViewController/Classes/**/*.{xib}'] 26 | } 27 | 28 | 29 | s.source_files = 'AZ-TableViewController/Classes/**/*.{swift}' 30 | 31 | end 32 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/AZTableView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/Pods-AZTableViewExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 Afroz Zaheer 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 Afroz Zaheer 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /AZ-TableViewController/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /AZTableViewExample/AZTableViewExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## AZTableView 5 | 6 | Copyright (c) 2017 Afroz Zaheer 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /AZ-TableViewController/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /AZTableViewExample/AZTableViewExample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /AZ-TableViewController/FakeService.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FakeService.swift 3 | // AZTableView 4 | // 5 | // Created by Muhammad Afroz on 7/28/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | 10 | import UIKit 11 | 12 | class FakeService { 13 | 14 | class func getData (offset: Int = 0, completion: @escaping ((Error?, [String]?) -> Void)) { 15 | DispatchQueue.main.asyncAfter(deadline: .now() + 2) { 16 | let fakeData = self.fakeData() 17 | 18 | var pageSize = 10 19 | 20 | if((offset + pageSize) >= fakeData.count) { 21 | pageSize = fakeData.count - offset 22 | } 23 | 24 | var results = [String]() 25 | for i in offset..<(offset + pageSize) { 26 | results.append(fakeData[i]) 27 | } 28 | 29 | completion(nil, results) 30 | } 31 | } 32 | 33 | private class func fakeData () -> [String] { 34 | return ["Afroz", "Zaheer", "Stark", "Lanister", "Jon", "Targaryn", "Snow", "No One "," Tyrion Lannister"," Cersei Lannister"," Daenerys Targaryen "," Jon Snow"," Sansa Stark"," Arya Stark"," Jaime Lannister"," Jorah Mormont"," Theon Greyjoy"," Samwell Tarly"," Lord Varys"," Petyr 'Littlefinger' Baelish"," Brienne of Tarth "," Davos Seaworth","Bran Stark"," Missandei "," Bronn"," Grand Maester Pycelle","Sandor 'The Hound' Clegane"," Melisandre"," Tywin Lannister"," Margaery Tyrell <3","Afroz", "Zaheer", "Stark", "Lanister", "Jon", "Targaryn", "Snow", "No One "," Tyrion Lannister"," Cersei Lannister"," Daenerys Targaryen "," Jon Snow"," Sansa Stark"," Arya Stark"," Jaime Lannister"," Jorah Mormont"," Theon Greyjoy"," Samwell Tarly"," Lord Varys"," Petyr 'Littlefinger' Baelish"," Brienne of Tarth "," Davos Seaworth","Bran Stark"," Missandei "," Bronn"," Grand Maester Pycelle","Sandor 'The Hound' Clegane"," Melisandre"," Tywin Lannister"," Margaery Tyrell <3"] 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /AZTableViewExample/AZTableViewExample/FakeService.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FakeService.swift 3 | // AZTableView 4 | // 5 | // Created by Muhammad Afroz on 7/28/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | 10 | import UIKit 11 | 12 | class FakeService { 13 | 14 | class func getData (offset: Int = 0, completion: @escaping ((Error?, [String]?) -> Void)) { 15 | DispatchQueue.main.asyncAfter(deadline: .now() + 2) { 16 | let fakeData = self.fakeData() 17 | 18 | var pageSize = 10 19 | 20 | if((offset + pageSize) >= fakeData.count) { 21 | pageSize = fakeData.count - offset 22 | } 23 | 24 | var results = [String]() 25 | for i in offset..<(offset + pageSize) { 26 | results.append(fakeData[i]) 27 | } 28 | 29 | completion(nil, results) 30 | } 31 | } 32 | 33 | private class func fakeData () -> [String] { 34 | return ["Afroz", "Zaheer", "Stark", "Lanister", "Jon", "Targaryn", "Snow", "No One "," Tyrion Lannister"," Cersei Lannister"," Daenerys Targaryen "," Jon Snow"," Sansa Stark"," Arya Stark"," Jaime Lannister"," Jorah Mormont"," Theon Greyjoy"," Samwell Tarly"," Lord Varys"," Petyr 'Littlefinger' Baelish"," Brienne of Tarth "," Davos Seaworth","Bran Stark"," Missandei "," Bronn"," Grand Maester Pycelle","Sandor 'The Hound' Clegane"," Melisandre"," Tywin Lannister"," Margaery Tyrell <3","Afroz", "Zaheer", "Stark", "Lanister", "Jon", "Targaryn", "Snow", "No One "," Tyrion Lannister"," Cersei Lannister"," Daenerys Targaryen "," Jon Snow"," Sansa Stark"," Arya Stark"," Jaime Lannister"," Jorah Mormont"," Theon Greyjoy"," Samwell Tarly"," Lord Varys"," Petyr 'Littlefinger' Baelish"," Brienne of Tarth "," Davos Seaworth","Bran Stark"," Missandei "," Bronn"," Grand Maester Pycelle","Sandor 'The Hound' Clegane"," Melisandre"," Tywin Lannister"," Margaery Tyrell <3"] 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/FakeService.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FakeService.swift 3 | // AZTableView 4 | // 5 | // Created by Muhammad Afroz on 7/28/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | 10 | import UIKit 11 | 12 | class FakeService { 13 | 14 | class func getData (offset: Int = 0, completion: @escaping ((Error?, [String]?) -> Void)) { 15 | DispatchQueue.main.asyncAfter(deadline: .now() + 2) { 16 | let fakeData = self.fakeData() 17 | 18 | var pageSize = 10 19 | 20 | if((offset + pageSize) >= fakeData.count) { 21 | pageSize = fakeData.count - offset 22 | } 23 | 24 | var results = [String]() 25 | for i in offset..<(offset + pageSize) { 26 | results.append(fakeData[i]) 27 | } 28 | 29 | completion(nil, results) 30 | } 31 | } 32 | 33 | private class func fakeData () -> [String] { 34 | return ["Afroz", "Zaheer", "Stark", "Lanister", "Jon", "Targaryn", "Snow", "No One "," Tyrion Lannister"," Cersei Lannister"," Daenerys Targaryen "," Jon Snow"," Sansa Stark"," Arya Stark"," Jaime Lannister"," Jorah Mormont"," Theon Greyjoy"," Samwell Tarly"," Lord Varys"," Petyr 'Littlefinger' Baelish"," Brienne of Tarth "," Davos Seaworth","Bran Stark"," Missandei "," Bronn"," Grand Maester Pycelle","Sandor 'The Hound' Clegane"," Melisandre"," Tywin Lannister"," Margaery Tyrell <3","Afroz", "Zaheer", "Stark", "Lanister", "Jon", "Targaryn", "Snow", "No One "," Tyrion Lannister"," Cersei Lannister"," Daenerys Targaryen "," Jon Snow"," Sansa Stark"," Arya Stark"," Jaime Lannister"," Jorah Mormont"," Theon Greyjoy"," Samwell Tarly"," Lord Varys"," Petyr 'Littlefinger' Baelish"," Brienne of Tarth "," Davos Seaworth","Bran Stark"," Missandei "," Bronn"," Grand Maester Pycelle","Sandor 'The Hound' Clegane"," Melisandre"," Tywin Lannister"," Margaery Tyrell <3"] 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Add any directories, files, or patterns you don't want to be tracked by version control 2 | # Created by http://www.gitignore.io 3 | 4 | ### OSX ### 5 | .DS_Store 6 | .AppleDouble 7 | .LSOverride 8 | 9 | # Icon must end with two \r 10 | Icon 11 | 12 | 13 | # Thumbnails 14 | ._* 15 | 16 | # Files that might appear on external disk 17 | .Spotlight-V100 18 | .Trashes 19 | 20 | # Directories potentially created on remote AFP share 21 | .AppleDB 22 | .AppleDesktop 23 | Network Trash Folder 24 | Temporary Items 25 | .apdisk 26 | 27 | 28 | ### Swift ### 29 | # Xcode 30 | # 31 | build/ 32 | *.pbxuser 33 | !default.pbxuser 34 | *.mode1v3 35 | !default.mode1v3 36 | *.mode2v3 37 | !default.mode2v3 38 | *.perspectivev3 39 | !default.perspectivev3 40 | xcuserdata 41 | *.xccheckout 42 | *.moved-aside 43 | DerivedData 44 | *.hmap 45 | *.ipa 46 | *.xcuserstate 47 | 48 | # CocoaPods 49 | # 50 | # We recommend against adding the Pods directory to your .gitignore. However 51 | # you should judge for yourself, the pros and cons are mentioned at: 52 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 53 | # 54 | # Pods/ 55 | 56 | 57 | ### Xcode ### 58 | build/ 59 | *.pbxuser 60 | !default.pbxuser 61 | *.mode1v3 62 | !default.mode1v3 63 | *.mode2v3 64 | !default.mode2v3 65 | *.perspectivev3 66 | !default.perspectivev3 67 | xcuserdata 68 | *.xccheckout 69 | *.moved-aside 70 | DerivedData 71 | *.xcuserstate 72 | 73 | 74 | 75 | 76 | 77 | # Created by https://www.gitignore.io/api/macos 78 | 79 | ### macOS ### 80 | *.DS_Store 81 | .AppleDouble 82 | .LSOverride 83 | 84 | # Icon must end with two \r 85 | Icon 86 | 87 | 88 | # Thumbnails 89 | ._* 90 | 91 | # Files that might appear in the root of a volume 92 | .DocumentRevisions-V100 93 | .fseventsd 94 | .Spotlight-V100 95 | .TemporaryItems 96 | .Trashes 97 | .VolumeIcon.icns 98 | .com.apple.timemachine.donotpresent 99 | 100 | # Directories potentially created on remote AFP share 101 | .AppleDB 102 | .AppleDesktop 103 | Network Trash Folder 104 | Temporary Items 105 | .apdisk 106 | 107 | # End of https://www.gitignore.io/api/macos 108 | -------------------------------------------------------------------------------- /AZ-TableViewController/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // AZ-TableViewController 4 | // 5 | // Created by Muhammad Afroz on 7/28/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /AZTableViewExample/AZTableViewExample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // AZTableViewExample 4 | // 5 | // Created by Muhammad Afroz on 8/2/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /AZ-TableViewController/Classes/Loading&ErrorViews/ErrorView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /AZ-TableViewController/Classes/Loading&ErrorViews/NoResultView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // AZ-TableViewController 4 | // 5 | // Created by Muhammad Afroz on 7/28/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2017 Afroz Zaheer <afrozezaheer@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | AZTableView 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/Classes/Loading&ErrorViews/ErrorView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/Classes/Loading&ErrorViews/NoResultView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /AZTableViewExample/AZTableViewExample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // AZTableViewExample 4 | // 5 | // Created by Muhammad Afroz on 8/2/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import AZTableView 11 | 12 | class ViewController: AZTableViewController { 13 | 14 | var lastIndex = 0 15 | var results = [String]() 16 | override func viewDidLoad() { 17 | 18 | super.viewDidLoad() 19 | self.fetchData() 20 | 21 | } 22 | 23 | override func didReceiveMemoryWarning() { 24 | super.didReceiveMemoryWarning() 25 | } 26 | } 27 | 28 | 29 | extension ViewController : UITableViewDataSource, UITableViewDelegate { 30 | 31 | override func AZtableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 32 | 33 | if let cell = tableView.dequeueReusableCell(withIdentifier: "Cell") 34 | { 35 | cell.textLabel?.text = results[indexPath.row] 36 | return cell 37 | } 38 | return UITableViewCell() 39 | } 40 | 41 | override func AZtableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 42 | return results.count 43 | } 44 | 45 | } 46 | 47 | extension ViewController { 48 | 49 | override func fetchData() { 50 | super.fetchData() 51 | 52 | FakeService.getData { (error, results) in 53 | 54 | if let resu = results { 55 | self.results.removeAll() 56 | self.results.append(contentsOf: resu) 57 | self.didfetchData(resultCount: resu.count, haveMoreData: true) 58 | } 59 | 60 | else if let error = error { 61 | self.errorDidOccured(error: error) 62 | } 63 | } 64 | } 65 | 66 | override func fetchNextData() { 67 | super.fetchNextData() 68 | 69 | FakeService.getData (offset: results.count) { (error, results) in 70 | 71 | if let resu = results { 72 | 73 | self.results.append(contentsOf: resu) 74 | if self.results.count < 50 { // you probably get next page exist from service. 75 | self.didfetchData(resultCount: resu.count, haveMoreData: true) 76 | } 77 | else { 78 | self.didfetchData(resultCount: resu.count, haveMoreData: false) 79 | } 80 | } 81 | else if let error = error { 82 | self.errorDidOccured(error: error) 83 | } 84 | } 85 | 86 | } 87 | 88 | } 89 | 90 | -------------------------------------------------------------------------------- /AZ-TableViewController/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // AZTableView 4 | // 5 | // Created by Muhammad Afroz on 7/28/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: AZTableViewController { 12 | 13 | var lastIndex = 0 14 | var results = [String]() 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | self.fetchData() 18 | } 19 | 20 | override func viewDidAppear(_ animated: Bool) { 21 | 22 | } 23 | 24 | override func didReceiveMemoryWarning() { 25 | super.didReceiveMemoryWarning() 26 | } 27 | } 28 | 29 | extension ViewController : UITableViewDataSource, UITableViewDelegate { 30 | 31 | override func AZtableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 32 | 33 | if let cell = tableView.dequeueReusableCell(withIdentifier: "Cell") 34 | { 35 | cell.textLabel?.text = results[indexPath.row] 36 | return cell 37 | } 38 | return UITableViewCell() 39 | } 40 | 41 | override func AZtableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 42 | return results.count 43 | } 44 | 45 | } 46 | 47 | extension ViewController { 48 | 49 | override func fetchData() { 50 | super.fetchData() 51 | 52 | FakeService.getData { (error, results) in 53 | 54 | if let resu = results { 55 | self.results.removeAll() 56 | self.results.append(contentsOf: resu) 57 | self.didfetchData(resultCount: resu.count, haveMoreData: true) 58 | } 59 | 60 | else if let error = error { 61 | self.errorDidOccured(error: error) 62 | } 63 | } 64 | } 65 | 66 | override func fetchNextData() { 67 | super.fetchNextData() 68 | 69 | FakeService.getData (offset: results.count) { (error, results) in 70 | 71 | if let resu = results { 72 | 73 | self.results.append(contentsOf: resu) 74 | if self.results.count < 50 { // you probably get next page exist from service. 75 | self.didfetchData(resultCount: resu.count, haveMoreData: true) 76 | } 77 | else { 78 | self.didfetchData(resultCount: resu.count, haveMoreData: false) 79 | } 80 | } 81 | else if let error = error { 82 | self.errorDidOccured(error: error) 83 | } 84 | } 85 | 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // AZTableView 4 | // 5 | // Created by Muhammad Afroz on 7/28/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: AZTableViewController { 12 | 13 | var lastIndex = 0 14 | var results = [String]() 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | self.fetchData() 18 | } 19 | 20 | override func viewDidAppear(_ animated: Bool) { 21 | 22 | } 23 | 24 | override func didReceiveMemoryWarning() { 25 | super.didReceiveMemoryWarning() 26 | } 27 | } 28 | 29 | extension ViewController : UITableViewDataSource, UITableViewDelegate { 30 | 31 | override func AZtableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 32 | 33 | if let cell = tableView.dequeueReusableCell(withIdentifier: "Cell") 34 | { 35 | cell.textLabel?.text = results[indexPath.row] 36 | return cell 37 | } 38 | return UITableViewCell() 39 | } 40 | 41 | override func AZtableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 42 | return results.count 43 | } 44 | 45 | } 46 | 47 | extension ViewController { 48 | 49 | override func fetchData() { 50 | super.fetchData() 51 | 52 | FakeService.getData { (error, results) in 53 | 54 | if let resu = results { 55 | self.results.removeAll() 56 | self.results.append(contentsOf: resu) 57 | self.didfetchData(resultCount: resu.count, haveMoreData: true) 58 | } 59 | 60 | else if let error = error { 61 | self.errorDidOccured(error: error) 62 | } 63 | } 64 | } 65 | 66 | override func fetchNextData() { 67 | super.fetchNextData() 68 | 69 | FakeService.getData (offset: results.count) { (error, results) in 70 | 71 | if let resu = results { 72 | 73 | self.results.append(contentsOf: resu) 74 | if self.results.count < 50 { // you probably get next page exist from service. 75 | self.didfetchData(resultCount: resu.count, haveMoreData: true) 76 | } 77 | else { 78 | self.didfetchData(resultCount: resu.count, haveMoreData: false) 79 | } 80 | } 81 | else if let error = error { 82 | self.errorDidOccured(error: error) 83 | } 84 | } 85 | 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /AZ-TableViewController/Classes/Loading&ErrorViews/LoadingTableViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/Classes/Loading&ErrorViews/LoadingTableViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /AZ-TableViewController/Classes/Loading&ErrorViews/LoadingView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/Classes/Loading&ErrorViews/LoadingView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | 91 | if [[ "$CONFIGURATION" == "Debug" ]]; then 92 | install_framework "$BUILT_PRODUCTS_DIR/AZTableView/AZTableView.framework" 93 | fi 94 | if [[ "$CONFIGURATION" == "Release" ]]; then 95 | install_framework "$BUILT_PRODUCTS_DIR/AZTableView/AZTableView.framework" 96 | fi 97 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 98 | wait 99 | fi 100 | -------------------------------------------------------------------------------- /AZTableViewExample/AZTableViewExample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/README.md: -------------------------------------------------------------------------------- 1 | # AZTableView Controller 2 | 3 | 4 | ![Alt text](http://i.imgur.com/qUV86bJ.png "AZ-TableViewImage") 5 | 6 | [![Swift version](https://img.shields.io/badge/swift-3.0-orange.svg?style=flat.svg)](https://img.shields.io/badge/swift-3.0-orange.svg?style=flat.svg) 7 | [![Support Dependecy Manager](https://img.shields.io/badge/support-CocoaPods-red.svg?style=flat.svg)](https://img.shields.io/badge/support-CocoaPods-red.svg?style=flat.svg) 8 | [![Version](https://img.shields.io/badge/pod%20-v0.0.1-blue.svg)](https://cocoapods.org/pods/AZTableView) 9 | [![License](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat.svg)](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat.svg) 10 | [![Platform](https://img.shields.io/badge/platform-ios-lightgrey.svg)](https://cocoapods.org/pods/AZTableView) 11 | 12 | 13 |

14 | 15 | 16 | 17 |

18 | 19 | 20 | 21 | ## Features 22 | 23 | * Automatic pagination handling 24 | * No more awkward empty TableView 25 | * AZ TableView controller give you advantage to connect your (Loading, no result, error ) views via Interface builder 26 | 27 | ## Installation 28 | 29 | ### CocoaPods 30 | 31 | [CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command: 32 | 33 | ```bash 34 | $ gem install cocoapods 35 | ``` 36 | 37 | 38 | To integrate AZTableViewController into your Xcode project using CocoaPods, specify it in your `Podfile`: 39 | 40 | ```ruby 41 | source 'https://github.com/CocoaPods/Specs.git' 42 | platform :ios, '10.0' 43 | use_frameworks! 44 | 45 | target '' do 46 | pod 'AZTableView' 47 | end 48 | ``` 49 | 50 | Then, run the following command: 51 | 52 | ```bash 53 | $ pod install 54 | ``` 55 | 56 | ## Usage 57 | 58 | #### Step 1 59 | 60 | * Extend you view controller from AZTableVIewController 61 | ```swift 62 | 63 | class ViewController: AZTableViewController { 64 | 65 | var lastIndex = 0 66 | var results = [String]() 67 | override func viewDidLoad() { 68 | super.viewDidLoad() 69 | self.fetchData() 70 | } 71 | 72 | override func viewDidAppear(_ animated: Bool) { 73 | 74 | } 75 | 76 | override func didReceiveMemoryWarning() { 77 | super.didReceiveMemoryWarning() 78 | } 79 | } 80 | 81 | 82 | ``` 83 | 84 | 85 | #### Step 2 86 | 87 | * Set the next page loder cell outlet as given below, 88 | 89 | ![Alt text](http://i.imgur.com/SWYNa2W.png "AZTableView-step2") 90 | 91 | ![Alt text](http://i.imgur.com/Zi9RKJ2.png "AZTableView-step2") 92 | 93 | 94 | #### Step 3 95 | 96 | * Confirm you controller to UITableViewDelegate and UITableViewDataSource 97 | 98 | * And override AZtabeView cellForRow function. 99 | 100 | ```swift 101 | extension ViewController : UITableViewDataSource, UITableViewDelegate { 102 | 103 | override func AZtableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 104 | 105 | if let cell = tableView.dequeueReusableCell(withIdentifier: "Cell") 106 | { 107 | cell.textLabel?.text = results[indexPath.row] 108 | return cell 109 | } 110 | return UITableViewCell() 111 | } 112 | 113 | override func AZtableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 114 | return results.count 115 | } 116 | } 117 | 118 | 119 | ``` 120 | #### Step 4 121 | 122 | * Override two more functions of fetchData and fetchNextData functions 123 | 124 | ```swift 125 | //MARK: - API Call 126 | extension ViewController { 127 | 128 | override func fetchData() { 129 | super.fetchData() 130 | 131 | FakeService.getData { (error, results) in 132 | 133 | if let resu = results { 134 | self.results.removeAll() 135 | self.results.append(contentsOf: resu) 136 | self.didfetchData(resultCount: resu.count, haveMoreData: true) 137 | } 138 | 139 | else if let error = error { 140 | self.errorDidOccured(error: error) 141 | } 142 | } 143 | } 144 | 145 | override func fetchNextData() { 146 | super.fetchNextData() 147 | 148 | FakeService.getData (offset: results.count) { (error, results) in 149 | 150 | if let resu = results { 151 | 152 | self.results.append(contentsOf: resu) 153 | if self.results.count < 45 { // you probably get next page exist from service. 154 | self.didfetchData(resultCount: resu.count, haveMoreData: true) 155 | } 156 | else { 157 | self.didfetchData(resultCount: resu.count, haveMoreData: false) 158 | } 159 | } 160 | else if let error = error { 161 | self.errorDidOccured(error: error) 162 | } 163 | } 164 | } 165 | } 166 | 167 | 168 | ``` 169 | 170 | 171 | 172 | ## License 173 | 174 | AZTableView is available under the MIT license. See the LICENSE file for more info. 175 | 176 | ## Author 177 | 178 | **Afroz Zaheer** - (https://github.com/AfrozZaheer) 179 | 180 | -------------------------------------------------------------------------------- /AZTableViewExample/Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | 4) 25 | TARGET_DEVICE_ARGS="--target-device watch" 26 | ;; 27 | *) 28 | TARGET_DEVICE_ARGS="--target-device mac" 29 | ;; 30 | esac 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "${PODS_ROOT}*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AZTableView Controller 2 | 3 | 4 | ![Alt text](http://i.imgur.com/qUV86bJ.png "AZ-TableViewImage") 5 | 6 | [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) 7 | [![Swift version](https://img.shields.io/badge/swift-3.0-orange.svg?style=flat.svg)](https://img.shields.io/badge/swift-3.0-orange.svg?style=flat.svg) 8 | [![Support Dependecy Manager](https://img.shields.io/badge/support-CocoaPods-red.svg?style=flat.svg)](https://img.shields.io/badge/support-CocoaPods-red.svg?style=flat.svg) 9 | [![Version](https://img.shields.io/cocoapods/v/AZTableView.svg?style=flat)](https://cocoapods.org/pods/AZTableView) 10 | [![License](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat.svg)](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat.svg) 11 | [![Platform](https://img.shields.io/badge/platform-ios-lightgrey.svg)](https://cocoapods.org/pods/AZTableView) 12 | 13 | 14 |

15 | 16 | 17 | 18 |

19 | 20 | 21 | 22 | ## Features 23 | 24 | * Automatic pagination handling 25 | * No more awkward empty TableView screen 26 | * AZ TableView controller give you advantage to connect your (Loading, no result, error ) views via Interface builder 27 | 28 | ## New in version 0.0.2 29 | 30 | * You can now add your custom xib as dummy views (loading, error, no result) 31 | * You can add xib based next page loading cell also 32 | 33 | ## Installation 34 | 35 | ### CocoaPods 36 | 37 | [CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command: 38 | 39 | ```bash 40 | $ gem install cocoapods 41 | ``` 42 | 43 | 44 | To integrate AZTableViewController into your Xcode project using CocoaPods, specify it in your `Podfile`: 45 | 46 | ```ruby 47 | source 'https://github.com/CocoaPods/Specs.git' 48 | platform :ios, '10.0' 49 | use_frameworks! 50 | 51 | target '' do 52 | pod 'AZTableView' 53 | end 54 | ``` 55 | 56 | Then, run the following command: 57 | 58 | ```bash 59 | $ pod install 60 | ``` 61 | 62 | ## Usage 63 | 64 | #### Step 1 65 | 66 | * Extend your view controller from AZTableVIewController 67 | ```swift 68 | 69 | class ViewController: AZTableViewController { 70 | 71 | var lastIndex = 0 72 | var results = [String]() 73 | override func viewDidLoad() { 74 | 75 | super.viewDidLoad() 76 | self.fetchData() 77 | } 78 | 79 | override func viewDidAppear(_ animated: Bool) { 80 | 81 | } 82 | 83 | override func didReceiveMemoryWarning() { 84 | super.didReceiveMemoryWarning() 85 | } 86 | } 87 | 88 | ``` 89 | 90 | #### Step 2 91 | 92 | * Set the next page loading cell outlet as given below, 93 | 94 | ![Alt text](http://i.imgur.com/SWYNa2W.png "AZTableView-step2") 95 | 96 | ![Alt text](http://i.imgur.com/Zi9RKJ2.png "AZTableView-step2") 97 | 98 | * To load views from custom .xib files 99 | 100 | ```swift 101 | 102 | class ViewController: AZTableViewController { 103 | override func viewDidLoad() { 104 | 105 | self.loadLoadingView(nibName: "your nib name") // if bundle is nil 106 | self.loadErrorView(nibName: "your nib name", bundle: yourBundle) // if custom bundle 107 | 108 | super.viewDidLoad() 109 | self.fetchData() 110 | } 111 | } 112 | ``` 113 | * If your xibs are in main bundle than use 114 | ```swift 115 | self.loadLoadingView(nibName: "your nib name") // if bundle is nil 116 | ``` 117 | Else use 118 | ```swift 119 | self.loadLoadingView(nibName: "your nib name", bundle: yourBundle) 120 | ``` 121 | 122 | #### Step 3 123 | 124 | * Confirm your controller to UITableViewDelegate and UITableViewDataSource 125 | 126 | * And override AZtabeView cellForRow function. 127 | 128 | ```swift 129 | extension ViewController : UITableViewDataSource, UITableViewDelegate { 130 | 131 | override func AZtableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 132 | 133 | if let cell = tableView.dequeueReusableCell(withIdentifier: "Cell") 134 | { 135 | cell.textLabel?.text = results[indexPath.row] 136 | return cell 137 | } 138 | return UITableViewCell() 139 | } 140 | 141 | override func AZtableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 142 | return results.count 143 | } 144 | } 145 | 146 | 147 | ``` 148 | #### Step 4 149 | 150 | * Override two more functions "fetchData" and "fetchNextData" 151 | 152 | ```swift 153 | //MARK: - API Call 154 | extension ViewController { 155 | 156 | override func fetchData() { 157 | super.fetchData() 158 | 159 | FakeService.getData { (error, results) in 160 | 161 | if let resu = results { 162 | self.results.removeAll() 163 | self.results.append(contentsOf: resu) 164 | self.didfetchData(resultCount: resu.count, haveMoreData: true) 165 | } 166 | 167 | else if let error = error { 168 | self.errorDidOccured(error: error) 169 | } 170 | } 171 | } 172 | 173 | override func fetchNextData() { 174 | super.fetchNextData() 175 | 176 | FakeService.getData (offset: results.count) { (error, results) in 177 | 178 | if let resu = results { 179 | 180 | self.results.append(contentsOf: resu) 181 | if self.results.count < 45 { // you probably get next page exist from service. 182 | self.didfetchData(resultCount: resu.count, haveMoreData: true) 183 | } 184 | else { 185 | self.didfetchData(resultCount: resu.count, haveMoreData: false) 186 | } 187 | } 188 | else if let error = error { 189 | self.errorDidOccured(error: error) 190 | } 191 | } 192 | } 193 | } 194 | 195 | ``` 196 | 197 | #### Done 198 | Thats it, you successfully integrate AZTableViewController 199 | 200 | 201 | ## License 202 | 203 | AZTableView is available under the MIT license. See the LICENSE file for more info. 204 | 205 | ## Author 206 | 207 | **Afroz Zaheer** - (https://github.com/AfrozZaheer) 208 | 209 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/Classes/AZTableViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AZTableViewController.swift 3 | // AZTableView 4 | // 5 | // Created by Muhammad Afroz on 7/28/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class AZTableViewController: UIViewController { 12 | 13 | //MARK: - IBOutlets 14 | 15 | @IBOutlet open var tableView: UITableView? 16 | @IBOutlet open var nextPageLoaderCell: UITableViewCell? 17 | 18 | 19 | //MARK: - Properties 20 | 21 | let refresh: UIRefreshControl = UIRefreshControl() 22 | @IBOutlet open var noResults: UIView? 23 | @IBOutlet open var loadingView: UIView? 24 | @IBOutlet open var errorView: UIView? 25 | 26 | 27 | var numberOfRows = 0 28 | open var haveMoreData = false 29 | open var isFetchingData = false 30 | 31 | override open func viewDidLoad() { 32 | super.viewDidLoad() 33 | 34 | refresh.addTarget(self, action: #selector(fetchData), for: .valueChanged) 35 | tableView?.addSubview(refresh) 36 | 37 | loadDefaultsViews() 38 | } 39 | 40 | override open func didReceiveMemoryWarning() { 41 | super.didReceiveMemoryWarning() 42 | } 43 | 44 | fileprivate func loadDefaultsViews(bundle: Bundle? = Utility.getBundle()) { 45 | 46 | loadNextPageLoaderCell(nibName: "LoadingTableViewCell" , bundle: bundle) 47 | loadErrorView(nibName: "ErrorView", bundle: bundle) 48 | loadNoResultView(nibName: "NoResultView", bundle: bundle) 49 | loadLoadingView(nibName: "LoadingView" , bundle: bundle) 50 | } 51 | 52 | public func loadNextPageLoaderCell(nibName: String ,bundle: Bundle? = Bundle.main) { 53 | 54 | if nextPageLoaderCell == nil { 55 | let loaderCell = UINib(nibName: nibName, bundle: bundle) 56 | tableView?.register(loaderCell, forCellReuseIdentifier: "LoadingTableViewCell") 57 | nextPageLoaderCell = tableView?.dequeueReusableCell(withIdentifier: "LoadingTableViewCell") 58 | } 59 | } 60 | 61 | 62 | public func loadErrorView(nibName: String ,bundle: Bundle? = Bundle.main) { 63 | if errorView == nil { 64 | errorView = bundle?.loadNibNamed(nibName, owner: self, options: nil)?.first as? UIView 65 | } 66 | } 67 | 68 | 69 | public func loadNoResultView(nibName: String ,bundle: Bundle? = Bundle.main) { 70 | if noResults == nil { 71 | noResults = bundle?.loadNibNamed(nibName, owner: self, options: nil)?.first as? UIView 72 | } 73 | } 74 | 75 | 76 | public func loadLoadingView(nibName: String ,bundle: Bundle? = Bundle.main) { 77 | if loadingView == nil { 78 | loadingView = bundle?.loadNibNamed(nibName, owner: self, options: nil)?.first as? UIView 79 | } 80 | } 81 | 82 | 83 | } 84 | 85 | //MARK: - UITableViewDelegate, UITableViewDataSource 86 | 87 | extension AZTableViewController { 88 | 89 | 90 | @objc(numberOfSectionsInTableView:) 91 | open func numberOfSections(in tableView: UITableView) -> Int { 92 | return 1 93 | } 94 | 95 | @objc(tableView:numberOfRowsInSection:) 96 | open func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 97 | 98 | if showNextPageLoaderCell(tableView: tableView, section: section) { 99 | 100 | return AZtableView(tableView, numberOfRowsInSection: section) + 1 101 | } 102 | 103 | return AZtableView(tableView, numberOfRowsInSection: section) 104 | } 105 | 106 | @objc open func AZtableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 107 | return numberOfRows 108 | } 109 | 110 | @objc(tableView:heightForRowAtIndexPath:) 111 | open func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 112 | if showNextPageLoaderCell(tableView: tableView, section: indexPath.section, row: indexPath.row), let nextPageLoaderCell = nextPageLoaderCell { 113 | return nextPageLoaderCell.frame.height 114 | } 115 | 116 | return AZtableView(tableView, heightForRowAt: indexPath) 117 | } 118 | 119 | @objc open func AZtableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 120 | return UITableViewAutomaticDimension 121 | } 122 | 123 | @objc(tableView:cellForRowAtIndexPath:) 124 | open func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 125 | if showNextPageLoaderCell(tableView: tableView, section: indexPath.section, row: indexPath.row), let nextPageLoaderCell = nextPageLoaderCell { 126 | if !self.isFetchingData { 127 | fetchNextData() 128 | } 129 | return nextPageLoaderCell 130 | } 131 | 132 | if shouldfetchNextData(tableView: tableView, indexPath: indexPath) { 133 | fetchNextData() 134 | } 135 | 136 | return AZtableView(tableView, cellForRowAt: indexPath) 137 | } 138 | 139 | @objc open func AZtableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 140 | return UITableViewCell() 141 | } 142 | } 143 | 144 | 145 | //MARK: - For Api's 146 | extension AZTableViewController { 147 | 148 | @objc open func fetchData() { 149 | numberOfRows = 0 150 | refresh.endRefreshing() 151 | hideNoResultsView() 152 | hideErrorView() 153 | hideNoResultsLoadingView() 154 | showNoResultsLoadingView() 155 | 156 | isFetchingData = true 157 | 158 | } 159 | 160 | open func didfetchData(resultCount: Int, haveMoreData: Bool) { 161 | hideNoResultsLoadingView() 162 | isFetchingData = false 163 | self.haveMoreData = haveMoreData 164 | if resultCount > 0 { 165 | numberOfRows += resultCount 166 | hideNoResultsView() 167 | tableView?.reloadData() 168 | } 169 | else { 170 | if numberOfRows <= 0 { 171 | showNoResultsView() 172 | } 173 | } 174 | } 175 | 176 | @objc open func fetchNextData () { 177 | isFetchingData = true 178 | hideErrorView() 179 | } 180 | 181 | open func errorDidOccured(error: Error?) { 182 | isFetchingData = false 183 | hideNoResultsView() 184 | hideErrorView() 185 | hideNoResultsLoadingView() 186 | if numberOfRows > 0 { 187 | let alert = UIAlertController(title: "Error!", message: error?.localizedDescription, preferredStyle: .alert) 188 | let okayAction = UIAlertAction(title: "Okay", style: .default, handler: { (action) in 189 | 190 | }) 191 | alert.addAction(okayAction) 192 | self.present(alert, animated: true, completion: nil) 193 | } 194 | else { 195 | showErrorView(error: error) 196 | } 197 | } 198 | 199 | 200 | open func showNextPageLoaderCell (tableView: UITableView? = nil, section: Int? = nil, row: Int? = nil) -> Bool { 201 | 202 | if nextPageLoaderCell != nil, haveMoreData { 203 | 204 | if let tableView = tableView, let section = section { 205 | // check if last section 206 | if self.numberOfSections(in: tableView) != section + 1 { 207 | return false 208 | } 209 | 210 | if let row = row { 211 | // check if last row 212 | if self.tableView(tableView, numberOfRowsInSection: section) != row + 1 { 213 | return false 214 | } 215 | } 216 | } 217 | 218 | return true 219 | } 220 | 221 | return false 222 | } 223 | 224 | open func shouldfetchNextData(tableView: UITableView, indexPath: IndexPath) -> Bool { 225 | if self.isFetchingData || !self.haveMoreData || self.nextPageLoaderCell == nil { 226 | return false 227 | } 228 | 229 | // if not last section 230 | if self.numberOfSections(in: tableView) != indexPath.section + 1 { 231 | return false 232 | } 233 | 234 | if indexPath.row >= self.tableView(tableView, numberOfRowsInSection: indexPath.section) - 3 { 235 | return true 236 | } 237 | 238 | return false 239 | } 240 | 241 | 242 | } 243 | 244 | //MARK: - Show Hide error loading Views 245 | extension AZTableViewController { 246 | 247 | func showNoResultsView() { 248 | if noResults != nil{ 249 | noResults?.isHidden = false 250 | noResults?.frame = getFrame() 251 | tableView?.addSubview(noResults!) 252 | } 253 | } 254 | func hideNoResultsView() { 255 | if noResults != nil{ 256 | tableView?.willRemoveSubview(noResults!) 257 | noResults?.removeFromSuperview() 258 | } 259 | } 260 | func showNoResultsLoadingView() { 261 | if loadingView != nil{ 262 | 263 | loadingView?.isHidden = false 264 | loadingView?.frame = getFrame() 265 | tableView?.addSubview(loadingView!) 266 | refresh.endRefreshing() 267 | tableView?.isUserInteractionEnabled = false 268 | } 269 | } 270 | func hideNoResultsLoadingView() { 271 | if loadingView != nil{ 272 | 273 | tableView?.willRemoveSubview(loadingView!) 274 | loadingView?.removeFromSuperview() 275 | tableView?.isUserInteractionEnabled = true 276 | 277 | } 278 | } 279 | func showErrorView(error: Error?) { 280 | if errorView != nil{ 281 | 282 | errorView?.isHidden = false 283 | errorView?.frame = getFrame() 284 | tableView?.addSubview(errorView!) 285 | } 286 | } 287 | func hideErrorView() { 288 | if errorView != nil{ 289 | tableView?.willRemoveSubview(errorView!) 290 | errorView?.removeFromSuperview() 291 | } 292 | } 293 | func getFrame() -> CGRect{ 294 | return CGRect(x: 0, y: 0, width: (tableView?.frame.size.width)!, height: (tableView?.frame.size.height)!) 295 | } 296 | } 297 | -------------------------------------------------------------------------------- /AZ-TableViewController/Classes/AZTableViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AZTableViewController.swift 3 | // AZTableView 4 | // 5 | // Created by Muhammad Afroz on 7/28/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class AZTableViewController: UIViewController { 12 | 13 | //MARK: - IBOutlets 14 | 15 | @IBOutlet open var tableView: UITableView? 16 | @IBOutlet open var nextPageLoaderCell: UITableViewCell? 17 | 18 | 19 | //MARK: - Properties 20 | 21 | let refresh: UIRefreshControl = UIRefreshControl() 22 | @IBOutlet open var noResults: UIView? 23 | @IBOutlet open var loadingView: UIView? 24 | @IBOutlet open var errorView: UIView? 25 | 26 | 27 | var numberOfRows = 0 28 | open var haveMoreData = false 29 | open var isFetchingData = false 30 | 31 | override open func viewDidLoad() { 32 | super.viewDidLoad() 33 | 34 | refresh.addTarget(self, action: #selector(fetchData), for: .valueChanged) 35 | tableView?.addSubview(refresh) 36 | 37 | loadDefaultsViews() 38 | } 39 | 40 | override open func didReceiveMemoryWarning() { 41 | super.didReceiveMemoryWarning() 42 | } 43 | 44 | fileprivate func loadDefaultsViews(bundle: Bundle? = Utility.getBundle()) { 45 | 46 | loadNextPageLoaderCell(nibName: "LoadingTableViewCell" , bundle: bundle) 47 | loadErrorView(nibName: "ErrorView", bundle: bundle) 48 | loadNoResultView(nibName: "NoResultView", bundle: bundle) 49 | loadLoadingView(nibName: "LoadingView" , bundle: bundle) 50 | } 51 | 52 | public func loadNextPageLoaderCell(nibName: String ,bundle: Bundle? = Bundle.main) { 53 | 54 | if nextPageLoaderCell == nil { 55 | let loaderCell = UINib(nibName: nibName, bundle: bundle) 56 | tableView?.register(loaderCell, forCellReuseIdentifier: "LoadingTableViewCell") 57 | nextPageLoaderCell = tableView?.dequeueReusableCell(withIdentifier: "LoadingTableViewCell") 58 | } 59 | } 60 | 61 | 62 | public func loadErrorView(nibName: String ,bundle: Bundle? = Bundle.main) { 63 | if errorView == nil { 64 | errorView = bundle?.loadNibNamed(nibName, owner: self, options: nil)?.first as? UIView 65 | } 66 | } 67 | 68 | 69 | public func loadNoResultView(nibName: String ,bundle: Bundle? = Bundle.main) { 70 | if noResults == nil { 71 | noResults = bundle?.loadNibNamed(nibName, owner: self, options: nil)?.first as? UIView 72 | } 73 | } 74 | 75 | 76 | public func loadLoadingView(nibName: String ,bundle: Bundle? = Bundle.main) { 77 | if loadingView == nil { 78 | loadingView = bundle?.loadNibNamed(nibName, owner: self, options: nil)?.first as? UIView 79 | } 80 | } 81 | 82 | 83 | } 84 | 85 | //MARK: - UITableViewDelegate, UITableViewDataSource 86 | 87 | extension AZTableViewController { 88 | 89 | 90 | @objc(numberOfSectionsInTableView:) 91 | open func numberOfSections(in tableView: UITableView) -> Int { 92 | return 1 93 | } 94 | 95 | @objc(tableView:numberOfRowsInSection:) 96 | open func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 97 | 98 | if showNextPageLoaderCell(tableView: tableView, section: section) { 99 | 100 | return AZtableView(tableView, numberOfRowsInSection: section) + 1 101 | } 102 | 103 | return AZtableView(tableView, numberOfRowsInSection: section) 104 | } 105 | 106 | @objc open func AZtableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 107 | return numberOfRows 108 | } 109 | 110 | @objc(tableView:heightForRowAtIndexPath:) 111 | open func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 112 | if showNextPageLoaderCell(tableView: tableView, section: indexPath.section, row: indexPath.row), let nextPageLoaderCell = nextPageLoaderCell { 113 | return nextPageLoaderCell.frame.height 114 | } 115 | 116 | return AZtableView(tableView, heightForRowAt: indexPath) 117 | } 118 | 119 | @objc open func AZtableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 120 | return UITableViewAutomaticDimension 121 | } 122 | 123 | @objc(tableView:cellForRowAtIndexPath:) 124 | open func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 125 | if showNextPageLoaderCell(tableView: tableView, section: indexPath.section, row: indexPath.row), let nextPageLoaderCell = nextPageLoaderCell { 126 | if !self.isFetchingData { 127 | fetchNextData() 128 | } 129 | return nextPageLoaderCell 130 | } 131 | 132 | if shouldfetchNextData(tableView: tableView, indexPath: indexPath) { 133 | fetchNextData() 134 | } 135 | 136 | return AZtableView(tableView, cellForRowAt: indexPath) 137 | } 138 | 139 | @objc open func AZtableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 140 | return UITableViewCell() 141 | } 142 | } 143 | 144 | 145 | //MARK: - For Api's 146 | extension AZTableViewController { 147 | 148 | @objc open func fetchData() { 149 | numberOfRows = 0 150 | refresh.endRefreshing() 151 | hideNoResultsView() 152 | hideErrorView() 153 | hideNoResultsLoadingView() 154 | showNoResultsLoadingView() 155 | 156 | isFetchingData = true 157 | 158 | } 159 | 160 | open func didfetchData(resultCount: Int, haveMoreData: Bool) { 161 | hideNoResultsLoadingView() 162 | isFetchingData = false 163 | self.haveMoreData = haveMoreData 164 | if resultCount > 0 { 165 | numberOfRows += resultCount 166 | hideNoResultsView() 167 | tableView?.reloadData() 168 | } 169 | else { 170 | if numberOfRows <= 0 { 171 | showNoResultsView() 172 | } 173 | } 174 | } 175 | 176 | @objc open func fetchNextData () { 177 | isFetchingData = true 178 | hideErrorView() 179 | } 180 | 181 | open func errorDidOccured(error: Error?) { 182 | isFetchingData = false 183 | hideNoResultsView() 184 | hideErrorView() 185 | hideNoResultsLoadingView() 186 | if numberOfRows > 0 { 187 | let alert = UIAlertController(title: "Error!", message: error?.localizedDescription, preferredStyle: .alert) 188 | let okayAction = UIAlertAction(title: "Okay", style: .default, handler: { (action) in 189 | 190 | }) 191 | alert.addAction(okayAction) 192 | self.present(alert, animated: true, completion: nil) 193 | } 194 | else { 195 | showErrorView(error: error) 196 | } 197 | } 198 | 199 | 200 | open func showNextPageLoaderCell (tableView: UITableView? = nil, section: Int? = nil, row: Int? = nil) -> Bool { 201 | 202 | if nextPageLoaderCell != nil, haveMoreData { 203 | 204 | if let tableView = tableView, let section = section { 205 | // check if last section 206 | if self.numberOfSections(in: tableView) != section + 1 { 207 | return false 208 | } 209 | 210 | if let row = row { 211 | // check if last row 212 | if self.tableView(tableView, numberOfRowsInSection: section) != row + 1 { 213 | return false 214 | } 215 | } 216 | } 217 | 218 | return true 219 | } 220 | 221 | return false 222 | } 223 | 224 | open func shouldfetchNextData(tableView: UITableView, indexPath: IndexPath) -> Bool { 225 | if self.isFetchingData || !self.haveMoreData || self.nextPageLoaderCell == nil { 226 | return false 227 | } 228 | 229 | // if not last section 230 | if self.numberOfSections(in: tableView) != indexPath.section + 1 { 231 | return false 232 | } 233 | 234 | if indexPath.row >= self.tableView(tableView, numberOfRowsInSection: indexPath.section) - 3 { 235 | return true 236 | } 237 | 238 | return false 239 | } 240 | 241 | 242 | } 243 | 244 | //MARK: - Show Hide error loading Views 245 | extension AZTableViewController { 246 | 247 | func showNoResultsView() { 248 | if noResults != nil{ 249 | noResults?.isHidden = false 250 | noResults?.frame = getFrame() 251 | tableView?.addSubview(noResults!) 252 | } 253 | } 254 | func hideNoResultsView() { 255 | if noResults != nil{ 256 | tableView?.willRemoveSubview(noResults!) 257 | noResults?.removeFromSuperview() 258 | } 259 | } 260 | func showNoResultsLoadingView() { 261 | if loadingView != nil{ 262 | 263 | loadingView?.isHidden = false 264 | loadingView?.frame = getFrame() 265 | tableView?.addSubview(loadingView!) 266 | refresh.endRefreshing() 267 | tableView?.isUserInteractionEnabled = false 268 | } 269 | } 270 | func hideNoResultsLoadingView() { 271 | if loadingView != nil{ 272 | 273 | tableView?.willRemoveSubview(loadingView!) 274 | loadingView?.removeFromSuperview() 275 | tableView?.isUserInteractionEnabled = true 276 | 277 | } 278 | } 279 | func showErrorView(error: Error?) { 280 | if errorView != nil{ 281 | 282 | errorView?.isHidden = false 283 | errorView?.frame = getFrame() 284 | tableView?.addSubview(errorView!) 285 | } 286 | } 287 | func hideErrorView() { 288 | if errorView != nil{ 289 | tableView?.willRemoveSubview(errorView!) 290 | errorView?.removeFromSuperview() 291 | } 292 | } 293 | func getFrame() -> CGRect{ 294 | return CGRect(x: 0, y: 0, width: (tableView?.frame.size.width)!, height: (tableView?.frame.size.height)!) 295 | } 296 | } 297 | 298 | -------------------------------------------------------------------------------- /AZ-TableViewController/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | -------------------------------------------------------------------------------- /AZTableViewExample/AZTableViewExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2073F8941F31A1AD00B52901 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2073F8931F31A1AD00B52901 /* AppDelegate.swift */; }; 11 | 2073F8961F31A1AD00B52901 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2073F8951F31A1AD00B52901 /* ViewController.swift */; }; 12 | 2073F8991F31A1AD00B52901 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2073F8971F31A1AD00B52901 /* Main.storyboard */; }; 13 | 2073F89B1F31A1AD00B52901 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2073F89A1F31A1AD00B52901 /* Assets.xcassets */; }; 14 | 2073F89E1F31A1AD00B52901 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2073F89C1F31A1AD00B52901 /* LaunchScreen.storyboard */; }; 15 | 2073F8A61F31A2E300B52901 /* FakeService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2073F8A51F31A2E300B52901 /* FakeService.swift */; }; 16 | FC63FFDA1368678DBE7DD166 /* Pods_AZTableViewExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FCE10CE2388F72AA94E78DE /* Pods_AZTableViewExample.framework */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | 0FCE10CE2388F72AA94E78DE /* Pods_AZTableViewExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AZTableViewExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | 2073F8901F31A1AD00B52901 /* AZTableViewExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AZTableViewExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | 2073F8931F31A1AD00B52901 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 23 | 2073F8951F31A1AD00B52901 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 24 | 2073F8981F31A1AD00B52901 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 25 | 2073F89A1F31A1AD00B52901 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 26 | 2073F89D1F31A1AD00B52901 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 27 | 2073F89F1F31A1AD00B52901 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 28 | 2073F8A51F31A2E300B52901 /* FakeService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FakeService.swift; sourceTree = ""; }; 29 | 2F11D5B39BB4EF03B1EEAD29 /* Pods-AZTableViewExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AZTableViewExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample.debug.xcconfig"; sourceTree = ""; }; 30 | C697F81F54C963B74D41A43D /* Pods-AZTableViewExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AZTableViewExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample.release.xcconfig"; sourceTree = ""; }; 31 | /* End PBXFileReference section */ 32 | 33 | /* Begin PBXFrameworksBuildPhase section */ 34 | 2073F88D1F31A1AD00B52901 /* Frameworks */ = { 35 | isa = PBXFrameworksBuildPhase; 36 | buildActionMask = 2147483647; 37 | files = ( 38 | FC63FFDA1368678DBE7DD166 /* Pods_AZTableViewExample.framework in Frameworks */, 39 | ); 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXFrameworksBuildPhase section */ 43 | 44 | /* Begin PBXGroup section */ 45 | 2073F8871F31A1AD00B52901 = { 46 | isa = PBXGroup; 47 | children = ( 48 | 2073F8921F31A1AD00B52901 /* AZTableViewExample */, 49 | 2073F8911F31A1AD00B52901 /* Products */, 50 | F45ADCD086401A575A96780D /* Pods */, 51 | 85F2F024F1EDC029877EDCC6 /* Frameworks */, 52 | ); 53 | sourceTree = ""; 54 | }; 55 | 2073F8911F31A1AD00B52901 /* Products */ = { 56 | isa = PBXGroup; 57 | children = ( 58 | 2073F8901F31A1AD00B52901 /* AZTableViewExample.app */, 59 | ); 60 | name = Products; 61 | sourceTree = ""; 62 | }; 63 | 2073F8921F31A1AD00B52901 /* AZTableViewExample */ = { 64 | isa = PBXGroup; 65 | children = ( 66 | 2073F8931F31A1AD00B52901 /* AppDelegate.swift */, 67 | 2073F8951F31A1AD00B52901 /* ViewController.swift */, 68 | 2073F8971F31A1AD00B52901 /* Main.storyboard */, 69 | 2073F8A51F31A2E300B52901 /* FakeService.swift */, 70 | 2073F89A1F31A1AD00B52901 /* Assets.xcassets */, 71 | 2073F89C1F31A1AD00B52901 /* LaunchScreen.storyboard */, 72 | 2073F89F1F31A1AD00B52901 /* Info.plist */, 73 | ); 74 | path = AZTableViewExample; 75 | sourceTree = ""; 76 | }; 77 | 85F2F024F1EDC029877EDCC6 /* Frameworks */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 0FCE10CE2388F72AA94E78DE /* Pods_AZTableViewExample.framework */, 81 | ); 82 | name = Frameworks; 83 | sourceTree = ""; 84 | }; 85 | F45ADCD086401A575A96780D /* Pods */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 2F11D5B39BB4EF03B1EEAD29 /* Pods-AZTableViewExample.debug.xcconfig */, 89 | C697F81F54C963B74D41A43D /* Pods-AZTableViewExample.release.xcconfig */, 90 | ); 91 | name = Pods; 92 | sourceTree = ""; 93 | }; 94 | /* End PBXGroup section */ 95 | 96 | /* Begin PBXNativeTarget section */ 97 | 2073F88F1F31A1AD00B52901 /* AZTableViewExample */ = { 98 | isa = PBXNativeTarget; 99 | buildConfigurationList = 2073F8A21F31A1AD00B52901 /* Build configuration list for PBXNativeTarget "AZTableViewExample" */; 100 | buildPhases = ( 101 | DAA6A01F1B989C8ECBB196D4 /* [CP] Check Pods Manifest.lock */, 102 | 2073F88C1F31A1AD00B52901 /* Sources */, 103 | 2073F88D1F31A1AD00B52901 /* Frameworks */, 104 | 2073F88E1F31A1AD00B52901 /* Resources */, 105 | 28ECD7F9CCE4F9C191C52DC9 /* [CP] Embed Pods Frameworks */, 106 | CC4B2C4FFEA81C9427F6A46C /* [CP] Copy Pods Resources */, 107 | ); 108 | buildRules = ( 109 | ); 110 | dependencies = ( 111 | ); 112 | name = AZTableViewExample; 113 | productName = AZTableViewExample; 114 | productReference = 2073F8901F31A1AD00B52901 /* AZTableViewExample.app */; 115 | productType = "com.apple.product-type.application"; 116 | }; 117 | /* End PBXNativeTarget section */ 118 | 119 | /* Begin PBXProject section */ 120 | 2073F8881F31A1AD00B52901 /* Project object */ = { 121 | isa = PBXProject; 122 | attributes = { 123 | LastSwiftUpdateCheck = 0830; 124 | LastUpgradeCheck = 0830; 125 | ORGANIZATIONNAME = AfrozZaheer; 126 | TargetAttributes = { 127 | 2073F88F1F31A1AD00B52901 = { 128 | CreatedOnToolsVersion = 8.3.3; 129 | DevelopmentTeam = CASVKBQG32; 130 | LastSwiftMigration = 0900; 131 | ProvisioningStyle = Automatic; 132 | }; 133 | }; 134 | }; 135 | buildConfigurationList = 2073F88B1F31A1AD00B52901 /* Build configuration list for PBXProject "AZTableViewExample" */; 136 | compatibilityVersion = "Xcode 3.2"; 137 | developmentRegion = English; 138 | hasScannedForEncodings = 0; 139 | knownRegions = ( 140 | en, 141 | Base, 142 | ); 143 | mainGroup = 2073F8871F31A1AD00B52901; 144 | productRefGroup = 2073F8911F31A1AD00B52901 /* Products */; 145 | projectDirPath = ""; 146 | projectRoot = ""; 147 | targets = ( 148 | 2073F88F1F31A1AD00B52901 /* AZTableViewExample */, 149 | ); 150 | }; 151 | /* End PBXProject section */ 152 | 153 | /* Begin PBXResourcesBuildPhase section */ 154 | 2073F88E1F31A1AD00B52901 /* Resources */ = { 155 | isa = PBXResourcesBuildPhase; 156 | buildActionMask = 2147483647; 157 | files = ( 158 | 2073F89E1F31A1AD00B52901 /* LaunchScreen.storyboard in Resources */, 159 | 2073F89B1F31A1AD00B52901 /* Assets.xcassets in Resources */, 160 | 2073F8991F31A1AD00B52901 /* Main.storyboard in Resources */, 161 | ); 162 | runOnlyForDeploymentPostprocessing = 0; 163 | }; 164 | /* End PBXResourcesBuildPhase section */ 165 | 166 | /* Begin PBXShellScriptBuildPhase section */ 167 | 28ECD7F9CCE4F9C191C52DC9 /* [CP] Embed Pods Frameworks */ = { 168 | isa = PBXShellScriptBuildPhase; 169 | buildActionMask = 2147483647; 170 | files = ( 171 | ); 172 | inputPaths = ( 173 | ); 174 | name = "[CP] Embed Pods Frameworks"; 175 | outputPaths = ( 176 | ); 177 | runOnlyForDeploymentPostprocessing = 0; 178 | shellPath = /bin/sh; 179 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample-frameworks.sh\"\n"; 180 | showEnvVarsInLog = 0; 181 | }; 182 | CC4B2C4FFEA81C9427F6A46C /* [CP] Copy Pods Resources */ = { 183 | isa = PBXShellScriptBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | ); 187 | inputPaths = ( 188 | ); 189 | name = "[CP] Copy Pods Resources"; 190 | outputPaths = ( 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | shellPath = /bin/sh; 194 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AZTableViewExample/Pods-AZTableViewExample-resources.sh\"\n"; 195 | showEnvVarsInLog = 0; 196 | }; 197 | DAA6A01F1B989C8ECBB196D4 /* [CP] Check Pods Manifest.lock */ = { 198 | isa = PBXShellScriptBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | ); 202 | inputPaths = ( 203 | ); 204 | name = "[CP] Check Pods Manifest.lock"; 205 | outputPaths = ( 206 | ); 207 | runOnlyForDeploymentPostprocessing = 0; 208 | shellPath = /bin/sh; 209 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 210 | showEnvVarsInLog = 0; 211 | }; 212 | /* End PBXShellScriptBuildPhase section */ 213 | 214 | /* Begin PBXSourcesBuildPhase section */ 215 | 2073F88C1F31A1AD00B52901 /* Sources */ = { 216 | isa = PBXSourcesBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | 2073F8A61F31A2E300B52901 /* FakeService.swift in Sources */, 220 | 2073F8961F31A1AD00B52901 /* ViewController.swift in Sources */, 221 | 2073F8941F31A1AD00B52901 /* AppDelegate.swift in Sources */, 222 | ); 223 | runOnlyForDeploymentPostprocessing = 0; 224 | }; 225 | /* End PBXSourcesBuildPhase section */ 226 | 227 | /* Begin PBXVariantGroup section */ 228 | 2073F8971F31A1AD00B52901 /* Main.storyboard */ = { 229 | isa = PBXVariantGroup; 230 | children = ( 231 | 2073F8981F31A1AD00B52901 /* Base */, 232 | ); 233 | name = Main.storyboard; 234 | sourceTree = ""; 235 | }; 236 | 2073F89C1F31A1AD00B52901 /* LaunchScreen.storyboard */ = { 237 | isa = PBXVariantGroup; 238 | children = ( 239 | 2073F89D1F31A1AD00B52901 /* Base */, 240 | ); 241 | name = LaunchScreen.storyboard; 242 | sourceTree = ""; 243 | }; 244 | /* End PBXVariantGroup section */ 245 | 246 | /* Begin XCBuildConfiguration section */ 247 | 2073F8A01F31A1AD00B52901 /* Debug */ = { 248 | isa = XCBuildConfiguration; 249 | buildSettings = { 250 | ALWAYS_SEARCH_USER_PATHS = NO; 251 | CLANG_ANALYZER_NONNULL = YES; 252 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 253 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 254 | CLANG_CXX_LIBRARY = "libc++"; 255 | CLANG_ENABLE_MODULES = YES; 256 | CLANG_ENABLE_OBJC_ARC = YES; 257 | CLANG_WARN_BOOL_CONVERSION = YES; 258 | CLANG_WARN_CONSTANT_CONVERSION = YES; 259 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 260 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 261 | CLANG_WARN_EMPTY_BODY = YES; 262 | CLANG_WARN_ENUM_CONVERSION = YES; 263 | CLANG_WARN_INFINITE_RECURSION = YES; 264 | CLANG_WARN_INT_CONVERSION = YES; 265 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 266 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 267 | CLANG_WARN_UNREACHABLE_CODE = YES; 268 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 269 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 270 | COPY_PHASE_STRIP = NO; 271 | DEBUG_INFORMATION_FORMAT = dwarf; 272 | ENABLE_STRICT_OBJC_MSGSEND = YES; 273 | ENABLE_TESTABILITY = YES; 274 | GCC_C_LANGUAGE_STANDARD = gnu99; 275 | GCC_DYNAMIC_NO_PIC = NO; 276 | GCC_NO_COMMON_BLOCKS = YES; 277 | GCC_OPTIMIZATION_LEVEL = 0; 278 | GCC_PREPROCESSOR_DEFINITIONS = ( 279 | "DEBUG=1", 280 | "$(inherited)", 281 | ); 282 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 283 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 284 | GCC_WARN_UNDECLARED_SELECTOR = YES; 285 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 286 | GCC_WARN_UNUSED_FUNCTION = YES; 287 | GCC_WARN_UNUSED_VARIABLE = YES; 288 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 289 | MTL_ENABLE_DEBUG_INFO = YES; 290 | ONLY_ACTIVE_ARCH = YES; 291 | SDKROOT = iphoneos; 292 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 293 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 294 | }; 295 | name = Debug; 296 | }; 297 | 2073F8A11F31A1AD00B52901 /* Release */ = { 298 | isa = XCBuildConfiguration; 299 | buildSettings = { 300 | ALWAYS_SEARCH_USER_PATHS = NO; 301 | CLANG_ANALYZER_NONNULL = YES; 302 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 303 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 304 | CLANG_CXX_LIBRARY = "libc++"; 305 | CLANG_ENABLE_MODULES = YES; 306 | CLANG_ENABLE_OBJC_ARC = YES; 307 | CLANG_WARN_BOOL_CONVERSION = YES; 308 | CLANG_WARN_CONSTANT_CONVERSION = YES; 309 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 310 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 311 | CLANG_WARN_EMPTY_BODY = YES; 312 | CLANG_WARN_ENUM_CONVERSION = YES; 313 | CLANG_WARN_INFINITE_RECURSION = YES; 314 | CLANG_WARN_INT_CONVERSION = YES; 315 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 316 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 317 | CLANG_WARN_UNREACHABLE_CODE = YES; 318 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 319 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 320 | COPY_PHASE_STRIP = NO; 321 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 322 | ENABLE_NS_ASSERTIONS = NO; 323 | ENABLE_STRICT_OBJC_MSGSEND = YES; 324 | GCC_C_LANGUAGE_STANDARD = gnu99; 325 | GCC_NO_COMMON_BLOCKS = YES; 326 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 327 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 328 | GCC_WARN_UNDECLARED_SELECTOR = YES; 329 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 330 | GCC_WARN_UNUSED_FUNCTION = YES; 331 | GCC_WARN_UNUSED_VARIABLE = YES; 332 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 333 | MTL_ENABLE_DEBUG_INFO = NO; 334 | SDKROOT = iphoneos; 335 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 336 | VALIDATE_PRODUCT = YES; 337 | }; 338 | name = Release; 339 | }; 340 | 2073F8A31F31A1AD00B52901 /* Debug */ = { 341 | isa = XCBuildConfiguration; 342 | baseConfigurationReference = 2F11D5B39BB4EF03B1EEAD29 /* Pods-AZTableViewExample.debug.xcconfig */; 343 | buildSettings = { 344 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 345 | DEVELOPMENT_TEAM = CASVKBQG32; 346 | INFOPLIST_FILE = AZTableViewExample/Info.plist; 347 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 348 | PRODUCT_BUNDLE_IDENTIFIER = "com.AZ-TableViewController.AZTableViewExample"; 349 | PRODUCT_NAME = "$(TARGET_NAME)"; 350 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 351 | SWIFT_VERSION = 4.0; 352 | }; 353 | name = Debug; 354 | }; 355 | 2073F8A41F31A1AD00B52901 /* Release */ = { 356 | isa = XCBuildConfiguration; 357 | baseConfigurationReference = C697F81F54C963B74D41A43D /* Pods-AZTableViewExample.release.xcconfig */; 358 | buildSettings = { 359 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 360 | DEVELOPMENT_TEAM = CASVKBQG32; 361 | INFOPLIST_FILE = AZTableViewExample/Info.plist; 362 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 363 | PRODUCT_BUNDLE_IDENTIFIER = "com.AZ-TableViewController.AZTableViewExample"; 364 | PRODUCT_NAME = "$(TARGET_NAME)"; 365 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 366 | SWIFT_VERSION = 4.0; 367 | }; 368 | name = Release; 369 | }; 370 | /* End XCBuildConfiguration section */ 371 | 372 | /* Begin XCConfigurationList section */ 373 | 2073F88B1F31A1AD00B52901 /* Build configuration list for PBXProject "AZTableViewExample" */ = { 374 | isa = XCConfigurationList; 375 | buildConfigurations = ( 376 | 2073F8A01F31A1AD00B52901 /* Debug */, 377 | 2073F8A11F31A1AD00B52901 /* Release */, 378 | ); 379 | defaultConfigurationIsVisible = 0; 380 | defaultConfigurationName = Release; 381 | }; 382 | 2073F8A21F31A1AD00B52901 /* Build configuration list for PBXNativeTarget "AZTableViewExample" */ = { 383 | isa = XCConfigurationList; 384 | buildConfigurations = ( 385 | 2073F8A31F31A1AD00B52901 /* Debug */, 386 | 2073F8A41F31A1AD00B52901 /* Release */, 387 | ); 388 | defaultConfigurationIsVisible = 0; 389 | defaultConfigurationName = Release; 390 | }; 391 | /* End XCConfigurationList section */ 392 | }; 393 | rootObject = 2073F8881F31A1AD00B52901 /* Project object */; 394 | } 395 | -------------------------------------------------------------------------------- /AZTableViewExample/Source/AZ-TableViewController/AZ-TableViewController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2093EFF21F2F128C00833030 /* README.md in Sources */ = {isa = PBXBuildFile; fileRef = 2093EFF11F2F128C00833030 /* README.md */; }; 11 | 2093EFF41F2F2C6400833030 /* AZTableView.podspec in Resources */ = {isa = PBXBuildFile; fileRef = 2093EFF31F2F2C6400833030 /* AZTableView.podspec */; }; 12 | 2093EFF61F2F44CF00833030 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 2093EFF51F2F44CF00833030 /* LICENSE */; }; 13 | 2093F01C1F2F648F00833030 /* LoadingView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2093F01B1F2F648F00833030 /* LoadingView.xib */; }; 14 | 2093F01E1F2F649C00833030 /* ErrorView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2093F01D1F2F649C00833030 /* ErrorView.xib */; }; 15 | 2093F0201F2F64AD00833030 /* NoResultView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2093F01F1F2F64AD00833030 /* NoResultView.xib */; }; 16 | 2093F0231F2F64F600833030 /* LoadingTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2093F0211F2F64F600833030 /* LoadingTableViewCell.swift */; }; 17 | 2093F0241F2F64F600833030 /* LoadingTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2093F0221F2F64F600833030 /* LoadingTableViewCell.xib */; }; 18 | 2093F0271F2F6D7600833030 /* Utility.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2093F0261F2F6D7600833030 /* Utility.swift */; }; 19 | 20BC86901F2B28D70084B8FF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20BC868F1F2B28D70084B8FF /* AppDelegate.swift */; }; 20 | 20BC86951F2B28D70084B8FF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 20BC86931F2B28D70084B8FF /* Main.storyboard */; }; 21 | 20BC86971F2B28D70084B8FF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 20BC86961F2B28D70084B8FF /* Assets.xcassets */; }; 22 | 20BC869A1F2B28D70084B8FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 20BC86981F2B28D70084B8FF /* LaunchScreen.storyboard */; }; 23 | 20BC86A51F2B2A0A0084B8FF /* AZTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20BC86A41F2B2A0A0084B8FF /* AZTableViewController.swift */; }; 24 | 20BC86A81F2B2A210084B8FF /* FakeService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20BC86A61F2B2A210084B8FF /* FakeService.swift */; }; 25 | 20BC86A91F2B2A210084B8FF /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20BC86A71F2B2A210084B8FF /* ViewController.swift */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXFileReference section */ 29 | 2093EFF11F2F128C00833030 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 30 | 2093EFF31F2F2C6400833030 /* AZTableView.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = AZTableView.podspec; sourceTree = ""; }; 31 | 2093EFF51F2F44CF00833030 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 32 | 2093F01B1F2F648F00833030 /* LoadingView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = LoadingView.xib; path = "Loading&ErrorViews/LoadingView.xib"; sourceTree = ""; }; 33 | 2093F01D1F2F649C00833030 /* ErrorView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = ErrorView.xib; path = "Loading&ErrorViews/ErrorView.xib"; sourceTree = ""; }; 34 | 2093F01F1F2F64AD00833030 /* NoResultView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = NoResultView.xib; path = "Loading&ErrorViews/NoResultView.xib"; sourceTree = ""; }; 35 | 2093F0211F2F64F600833030 /* LoadingTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LoadingTableViewCell.swift; path = "Loading&ErrorViews/LoadingTableViewCell.swift"; sourceTree = ""; }; 36 | 2093F0221F2F64F600833030 /* LoadingTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = LoadingTableViewCell.xib; path = "Loading&ErrorViews/LoadingTableViewCell.xib"; sourceTree = ""; }; 37 | 2093F0261F2F6D7600833030 /* Utility.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Utility.swift; sourceTree = ""; }; 38 | 20BC868C1F2B28D70084B8FF /* AZ-TableViewController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "AZ-TableViewController.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 20BC868F1F2B28D70084B8FF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 40 | 20BC86941F2B28D70084B8FF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 41 | 20BC86961F2B28D70084B8FF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 42 | 20BC86991F2B28D70084B8FF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 43 | 20BC869B1F2B28D70084B8FF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 20BC86A41F2B2A0A0084B8FF /* AZTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AZTableViewController.swift; sourceTree = ""; }; 45 | 20BC86A61F2B2A210084B8FF /* FakeService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FakeService.swift; sourceTree = ""; }; 46 | 20BC86A71F2B2A210084B8FF /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 20BC86891F2B28D70084B8FF /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | ); 55 | runOnlyForDeploymentPostprocessing = 0; 56 | }; 57 | /* End PBXFrameworksBuildPhase section */ 58 | 59 | /* Begin PBXGroup section */ 60 | 2093F0151F2F600B00833030 /* LoadingXibs */ = { 61 | isa = PBXGroup; 62 | children = ( 63 | 2093F01B1F2F648F00833030 /* LoadingView.xib */, 64 | 2093F01D1F2F649C00833030 /* ErrorView.xib */, 65 | 2093F01F1F2F64AD00833030 /* NoResultView.xib */, 66 | 2093F0211F2F64F600833030 /* LoadingTableViewCell.swift */, 67 | 2093F0221F2F64F600833030 /* LoadingTableViewCell.xib */, 68 | ); 69 | name = LoadingXibs; 70 | sourceTree = ""; 71 | }; 72 | 20BC86831F2B28D70084B8FF = { 73 | isa = PBXGroup; 74 | children = ( 75 | 2093EFF51F2F44CF00833030 /* LICENSE */, 76 | 2093EFF31F2F2C6400833030 /* AZTableView.podspec */, 77 | 2093EFF11F2F128C00833030 /* README.md */, 78 | 20BC868E1F2B28D70084B8FF /* AZ-TableViewController */, 79 | 20BC868D1F2B28D70084B8FF /* Products */, 80 | ); 81 | sourceTree = ""; 82 | }; 83 | 20BC868D1F2B28D70084B8FF /* Products */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 20BC868C1F2B28D70084B8FF /* AZ-TableViewController.app */, 87 | ); 88 | name = Products; 89 | sourceTree = ""; 90 | }; 91 | 20BC868E1F2B28D70084B8FF /* AZ-TableViewController */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 20BC868F1F2B28D70084B8FF /* AppDelegate.swift */, 95 | 20BC86A71F2B2A210084B8FF /* ViewController.swift */, 96 | 20BC86A61F2B2A210084B8FF /* FakeService.swift */, 97 | 20BC86931F2B28D70084B8FF /* Main.storyboard */, 98 | 20BC86A31F2B2A0A0084B8FF /* Classes */, 99 | 20BC86961F2B28D70084B8FF /* Assets.xcassets */, 100 | 20BC86981F2B28D70084B8FF /* LaunchScreen.storyboard */, 101 | 20BC869B1F2B28D70084B8FF /* Info.plist */, 102 | ); 103 | path = "AZ-TableViewController"; 104 | sourceTree = ""; 105 | }; 106 | 20BC86A31F2B2A0A0084B8FF /* Classes */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 2093F0151F2F600B00833030 /* LoadingXibs */, 110 | 20BC86A41F2B2A0A0084B8FF /* AZTableViewController.swift */, 111 | 2093F0261F2F6D7600833030 /* Utility.swift */, 112 | ); 113 | path = Classes; 114 | sourceTree = ""; 115 | }; 116 | /* End PBXGroup section */ 117 | 118 | /* Begin PBXNativeTarget section */ 119 | 20BC868B1F2B28D70084B8FF /* AZ-TableViewController */ = { 120 | isa = PBXNativeTarget; 121 | buildConfigurationList = 20BC869E1F2B28D70084B8FF /* Build configuration list for PBXNativeTarget "AZ-TableViewController" */; 122 | buildPhases = ( 123 | 20BC86881F2B28D70084B8FF /* Sources */, 124 | 20BC86891F2B28D70084B8FF /* Frameworks */, 125 | 20BC868A1F2B28D70084B8FF /* Resources */, 126 | ); 127 | buildRules = ( 128 | ); 129 | dependencies = ( 130 | ); 131 | name = "AZ-TableViewController"; 132 | productName = "AZ-TableViewController"; 133 | productReference = 20BC868C1F2B28D70084B8FF /* AZ-TableViewController.app */; 134 | productType = "com.apple.product-type.application"; 135 | }; 136 | /* End PBXNativeTarget section */ 137 | 138 | /* Begin PBXProject section */ 139 | 20BC86841F2B28D70084B8FF /* Project object */ = { 140 | isa = PBXProject; 141 | attributes = { 142 | LastSwiftUpdateCheck = 0830; 143 | LastUpgradeCheck = 0830; 144 | ORGANIZATIONNAME = AfrozZaheer; 145 | TargetAttributes = { 146 | 20BC868B1F2B28D70084B8FF = { 147 | CreatedOnToolsVersion = 8.3.3; 148 | DevelopmentTeam = CASVKBQG32; 149 | ProvisioningStyle = Automatic; 150 | }; 151 | }; 152 | }; 153 | buildConfigurationList = 20BC86871F2B28D70084B8FF /* Build configuration list for PBXProject "AZ-TableViewController" */; 154 | compatibilityVersion = "Xcode 3.2"; 155 | developmentRegion = English; 156 | hasScannedForEncodings = 0; 157 | knownRegions = ( 158 | en, 159 | Base, 160 | ); 161 | mainGroup = 20BC86831F2B28D70084B8FF; 162 | productRefGroup = 20BC868D1F2B28D70084B8FF /* Products */; 163 | projectDirPath = ""; 164 | projectRoot = ""; 165 | targets = ( 166 | 20BC868B1F2B28D70084B8FF /* AZ-TableViewController */, 167 | ); 168 | }; 169 | /* End PBXProject section */ 170 | 171 | /* Begin PBXResourcesBuildPhase section */ 172 | 20BC868A1F2B28D70084B8FF /* Resources */ = { 173 | isa = PBXResourcesBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | 2093F0201F2F64AD00833030 /* NoResultView.xib in Resources */, 177 | 20BC869A1F2B28D70084B8FF /* LaunchScreen.storyboard in Resources */, 178 | 2093EFF41F2F2C6400833030 /* AZTableView.podspec in Resources */, 179 | 2093F0241F2F64F600833030 /* LoadingTableViewCell.xib in Resources */, 180 | 20BC86971F2B28D70084B8FF /* Assets.xcassets in Resources */, 181 | 2093F01C1F2F648F00833030 /* LoadingView.xib in Resources */, 182 | 2093F01E1F2F649C00833030 /* ErrorView.xib in Resources */, 183 | 20BC86951F2B28D70084B8FF /* Main.storyboard in Resources */, 184 | 2093EFF61F2F44CF00833030 /* LICENSE in Resources */, 185 | ); 186 | runOnlyForDeploymentPostprocessing = 0; 187 | }; 188 | /* End PBXResourcesBuildPhase section */ 189 | 190 | /* Begin PBXSourcesBuildPhase section */ 191 | 20BC86881F2B28D70084B8FF /* Sources */ = { 192 | isa = PBXSourcesBuildPhase; 193 | buildActionMask = 2147483647; 194 | files = ( 195 | 2093F0271F2F6D7600833030 /* Utility.swift in Sources */, 196 | 20BC86A81F2B2A210084B8FF /* FakeService.swift in Sources */, 197 | 20BC86901F2B28D70084B8FF /* AppDelegate.swift in Sources */, 198 | 2093F0231F2F64F600833030 /* LoadingTableViewCell.swift in Sources */, 199 | 2093EFF21F2F128C00833030 /* README.md in Sources */, 200 | 20BC86A91F2B2A210084B8FF /* ViewController.swift in Sources */, 201 | 20BC86A51F2B2A0A0084B8FF /* AZTableViewController.swift in Sources */, 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | }; 205 | /* End PBXSourcesBuildPhase section */ 206 | 207 | /* Begin PBXVariantGroup section */ 208 | 20BC86931F2B28D70084B8FF /* Main.storyboard */ = { 209 | isa = PBXVariantGroup; 210 | children = ( 211 | 20BC86941F2B28D70084B8FF /* Base */, 212 | ); 213 | name = Main.storyboard; 214 | sourceTree = ""; 215 | }; 216 | 20BC86981F2B28D70084B8FF /* LaunchScreen.storyboard */ = { 217 | isa = PBXVariantGroup; 218 | children = ( 219 | 20BC86991F2B28D70084B8FF /* Base */, 220 | ); 221 | name = LaunchScreen.storyboard; 222 | sourceTree = ""; 223 | }; 224 | /* End PBXVariantGroup section */ 225 | 226 | /* Begin XCBuildConfiguration section */ 227 | 20BC869C1F2B28D70084B8FF /* Debug */ = { 228 | isa = XCBuildConfiguration; 229 | buildSettings = { 230 | ALWAYS_SEARCH_USER_PATHS = NO; 231 | CLANG_ANALYZER_NONNULL = YES; 232 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 233 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 234 | CLANG_CXX_LIBRARY = "libc++"; 235 | CLANG_ENABLE_MODULES = YES; 236 | CLANG_ENABLE_OBJC_ARC = YES; 237 | CLANG_WARN_BOOL_CONVERSION = YES; 238 | CLANG_WARN_CONSTANT_CONVERSION = YES; 239 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 240 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 241 | CLANG_WARN_EMPTY_BODY = YES; 242 | CLANG_WARN_ENUM_CONVERSION = YES; 243 | CLANG_WARN_INFINITE_RECURSION = YES; 244 | CLANG_WARN_INT_CONVERSION = YES; 245 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 246 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 247 | CLANG_WARN_UNREACHABLE_CODE = YES; 248 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 249 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 250 | COPY_PHASE_STRIP = NO; 251 | DEBUG_INFORMATION_FORMAT = dwarf; 252 | ENABLE_STRICT_OBJC_MSGSEND = YES; 253 | ENABLE_TESTABILITY = YES; 254 | GCC_C_LANGUAGE_STANDARD = gnu99; 255 | GCC_DYNAMIC_NO_PIC = NO; 256 | GCC_NO_COMMON_BLOCKS = YES; 257 | GCC_OPTIMIZATION_LEVEL = 0; 258 | GCC_PREPROCESSOR_DEFINITIONS = ( 259 | "DEBUG=1", 260 | "$(inherited)", 261 | ); 262 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 263 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 264 | GCC_WARN_UNDECLARED_SELECTOR = YES; 265 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 266 | GCC_WARN_UNUSED_FUNCTION = YES; 267 | GCC_WARN_UNUSED_VARIABLE = YES; 268 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 269 | MTL_ENABLE_DEBUG_INFO = YES; 270 | ONLY_ACTIVE_ARCH = YES; 271 | SDKROOT = iphoneos; 272 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 273 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 274 | }; 275 | name = Debug; 276 | }; 277 | 20BC869D1F2B28D70084B8FF /* Release */ = { 278 | isa = XCBuildConfiguration; 279 | buildSettings = { 280 | ALWAYS_SEARCH_USER_PATHS = NO; 281 | CLANG_ANALYZER_NONNULL = YES; 282 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 283 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 284 | CLANG_CXX_LIBRARY = "libc++"; 285 | CLANG_ENABLE_MODULES = YES; 286 | CLANG_ENABLE_OBJC_ARC = YES; 287 | CLANG_WARN_BOOL_CONVERSION = YES; 288 | CLANG_WARN_CONSTANT_CONVERSION = YES; 289 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 290 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 291 | CLANG_WARN_EMPTY_BODY = YES; 292 | CLANG_WARN_ENUM_CONVERSION = YES; 293 | CLANG_WARN_INFINITE_RECURSION = YES; 294 | CLANG_WARN_INT_CONVERSION = YES; 295 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 296 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 297 | CLANG_WARN_UNREACHABLE_CODE = YES; 298 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 299 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 300 | COPY_PHASE_STRIP = NO; 301 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 302 | ENABLE_NS_ASSERTIONS = NO; 303 | ENABLE_STRICT_OBJC_MSGSEND = YES; 304 | GCC_C_LANGUAGE_STANDARD = gnu99; 305 | GCC_NO_COMMON_BLOCKS = YES; 306 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 307 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 308 | GCC_WARN_UNDECLARED_SELECTOR = YES; 309 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 310 | GCC_WARN_UNUSED_FUNCTION = YES; 311 | GCC_WARN_UNUSED_VARIABLE = YES; 312 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 313 | MTL_ENABLE_DEBUG_INFO = NO; 314 | SDKROOT = iphoneos; 315 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 316 | VALIDATE_PRODUCT = YES; 317 | }; 318 | name = Release; 319 | }; 320 | 20BC869F1F2B28D70084B8FF /* Debug */ = { 321 | isa = XCBuildConfiguration; 322 | buildSettings = { 323 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 324 | DEVELOPMENT_TEAM = CASVKBQG32; 325 | INFOPLIST_FILE = "AZ-TableViewController/Info.plist"; 326 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 327 | PRODUCT_BUNDLE_IDENTIFIER = "com.AZ-TableViewController.AZ-TableViewController"; 328 | PRODUCT_NAME = "$(TARGET_NAME)"; 329 | SWIFT_VERSION = 3.0; 330 | }; 331 | name = Debug; 332 | }; 333 | 20BC86A01F2B28D70084B8FF /* Release */ = { 334 | isa = XCBuildConfiguration; 335 | buildSettings = { 336 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 337 | DEVELOPMENT_TEAM = CASVKBQG32; 338 | INFOPLIST_FILE = "AZ-TableViewController/Info.plist"; 339 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 340 | PRODUCT_BUNDLE_IDENTIFIER = "com.AZ-TableViewController.AZ-TableViewController"; 341 | PRODUCT_NAME = "$(TARGET_NAME)"; 342 | SWIFT_VERSION = 3.0; 343 | }; 344 | name = Release; 345 | }; 346 | /* End XCBuildConfiguration section */ 347 | 348 | /* Begin XCConfigurationList section */ 349 | 20BC86871F2B28D70084B8FF /* Build configuration list for PBXProject "AZ-TableViewController" */ = { 350 | isa = XCConfigurationList; 351 | buildConfigurations = ( 352 | 20BC869C1F2B28D70084B8FF /* Debug */, 353 | 20BC869D1F2B28D70084B8FF /* Release */, 354 | ); 355 | defaultConfigurationIsVisible = 0; 356 | defaultConfigurationName = Release; 357 | }; 358 | 20BC869E1F2B28D70084B8FF /* Build configuration list for PBXNativeTarget "AZ-TableViewController" */ = { 359 | isa = XCConfigurationList; 360 | buildConfigurations = ( 361 | 20BC869F1F2B28D70084B8FF /* Debug */, 362 | 20BC86A01F2B28D70084B8FF /* Release */, 363 | ); 364 | defaultConfigurationIsVisible = 0; 365 | defaultConfigurationName = Release; 366 | }; 367 | /* End XCConfigurationList section */ 368 | }; 369 | rootObject = 20BC86841F2B28D70084B8FF /* Project object */; 370 | } 371 | -------------------------------------------------------------------------------- /AZ-TableViewController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2093EFF21F2F128C00833030 /* README.md in Sources */ = {isa = PBXBuildFile; fileRef = 2093EFF11F2F128C00833030 /* README.md */; }; 11 | 2093EFF41F2F2C6400833030 /* AZTableView.podspec in Resources */ = {isa = PBXBuildFile; fileRef = 2093EFF31F2F2C6400833030 /* AZTableView.podspec */; }; 12 | 2093EFF61F2F44CF00833030 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 2093EFF51F2F44CF00833030 /* LICENSE */; }; 13 | 2093F01C1F2F648F00833030 /* LoadingView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2093F01B1F2F648F00833030 /* LoadingView.xib */; }; 14 | 2093F01E1F2F649C00833030 /* ErrorView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2093F01D1F2F649C00833030 /* ErrorView.xib */; }; 15 | 2093F0201F2F64AD00833030 /* NoResultView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2093F01F1F2F64AD00833030 /* NoResultView.xib */; }; 16 | 2093F0231F2F64F600833030 /* LoadingTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2093F0211F2F64F600833030 /* LoadingTableViewCell.swift */; }; 17 | 2093F0241F2F64F600833030 /* LoadingTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2093F0221F2F64F600833030 /* LoadingTableViewCell.xib */; }; 18 | 2093F0271F2F6D7600833030 /* Utility.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2093F0261F2F6D7600833030 /* Utility.swift */; }; 19 | 20BC86901F2B28D70084B8FF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20BC868F1F2B28D70084B8FF /* AppDelegate.swift */; }; 20 | 20BC86951F2B28D70084B8FF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 20BC86931F2B28D70084B8FF /* Main.storyboard */; }; 21 | 20BC86971F2B28D70084B8FF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 20BC86961F2B28D70084B8FF /* Assets.xcassets */; }; 22 | 20BC869A1F2B28D70084B8FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 20BC86981F2B28D70084B8FF /* LaunchScreen.storyboard */; }; 23 | 20BC86A51F2B2A0A0084B8FF /* AZTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20BC86A41F2B2A0A0084B8FF /* AZTableViewController.swift */; }; 24 | 20BC86A81F2B2A210084B8FF /* FakeService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20BC86A61F2B2A210084B8FF /* FakeService.swift */; }; 25 | 20BC86A91F2B2A210084B8FF /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20BC86A71F2B2A210084B8FF /* ViewController.swift */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXFileReference section */ 29 | 2093EFF11F2F128C00833030 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 30 | 2093EFF31F2F2C6400833030 /* AZTableView.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = AZTableView.podspec; sourceTree = ""; }; 31 | 2093EFF51F2F44CF00833030 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 32 | 2093F01B1F2F648F00833030 /* LoadingView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = LoadingView.xib; path = "Loading&ErrorViews/LoadingView.xib"; sourceTree = ""; }; 33 | 2093F01D1F2F649C00833030 /* ErrorView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = ErrorView.xib; path = "Loading&ErrorViews/ErrorView.xib"; sourceTree = ""; }; 34 | 2093F01F1F2F64AD00833030 /* NoResultView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = NoResultView.xib; path = "Loading&ErrorViews/NoResultView.xib"; sourceTree = ""; }; 35 | 2093F0211F2F64F600833030 /* LoadingTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LoadingTableViewCell.swift; path = "Loading&ErrorViews/LoadingTableViewCell.swift"; sourceTree = ""; }; 36 | 2093F0221F2F64F600833030 /* LoadingTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = LoadingTableViewCell.xib; path = "Loading&ErrorViews/LoadingTableViewCell.xib"; sourceTree = ""; }; 37 | 2093F0261F2F6D7600833030 /* Utility.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Utility.swift; sourceTree = ""; }; 38 | 20BC868C1F2B28D70084B8FF /* AZ-TableViewController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "AZ-TableViewController.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 20BC868F1F2B28D70084B8FF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 40 | 20BC86941F2B28D70084B8FF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 41 | 20BC86961F2B28D70084B8FF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 42 | 20BC86991F2B28D70084B8FF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 43 | 20BC869B1F2B28D70084B8FF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 20BC86A41F2B2A0A0084B8FF /* AZTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AZTableViewController.swift; sourceTree = ""; }; 45 | 20BC86A61F2B2A210084B8FF /* FakeService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FakeService.swift; sourceTree = ""; }; 46 | 20BC86A71F2B2A210084B8FF /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 20BC86891F2B28D70084B8FF /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | ); 55 | runOnlyForDeploymentPostprocessing = 0; 56 | }; 57 | /* End PBXFrameworksBuildPhase section */ 58 | 59 | /* Begin PBXGroup section */ 60 | 2093F0151F2F600B00833030 /* LoadingXibs */ = { 61 | isa = PBXGroup; 62 | children = ( 63 | 2093F01B1F2F648F00833030 /* LoadingView.xib */, 64 | 2093F01D1F2F649C00833030 /* ErrorView.xib */, 65 | 2093F01F1F2F64AD00833030 /* NoResultView.xib */, 66 | 2093F0211F2F64F600833030 /* LoadingTableViewCell.swift */, 67 | 2093F0221F2F64F600833030 /* LoadingTableViewCell.xib */, 68 | ); 69 | name = LoadingXibs; 70 | sourceTree = ""; 71 | }; 72 | 20BC86831F2B28D70084B8FF = { 73 | isa = PBXGroup; 74 | children = ( 75 | 2093EFF51F2F44CF00833030 /* LICENSE */, 76 | 2093EFF31F2F2C6400833030 /* AZTableView.podspec */, 77 | 2093EFF11F2F128C00833030 /* README.md */, 78 | 20BC868E1F2B28D70084B8FF /* AZ-TableViewController */, 79 | 20BC868D1F2B28D70084B8FF /* Products */, 80 | ); 81 | sourceTree = ""; 82 | }; 83 | 20BC868D1F2B28D70084B8FF /* Products */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 20BC868C1F2B28D70084B8FF /* AZ-TableViewController.app */, 87 | ); 88 | name = Products; 89 | sourceTree = ""; 90 | }; 91 | 20BC868E1F2B28D70084B8FF /* AZ-TableViewController */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 20BC868F1F2B28D70084B8FF /* AppDelegate.swift */, 95 | 20BC86A71F2B2A210084B8FF /* ViewController.swift */, 96 | 20BC86A61F2B2A210084B8FF /* FakeService.swift */, 97 | 20BC86931F2B28D70084B8FF /* Main.storyboard */, 98 | 20BC86A31F2B2A0A0084B8FF /* Classes */, 99 | 20BC86961F2B28D70084B8FF /* Assets.xcassets */, 100 | 20BC86981F2B28D70084B8FF /* LaunchScreen.storyboard */, 101 | 20BC869B1F2B28D70084B8FF /* Info.plist */, 102 | ); 103 | path = "AZ-TableViewController"; 104 | sourceTree = ""; 105 | }; 106 | 20BC86A31F2B2A0A0084B8FF /* Classes */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 2093F0151F2F600B00833030 /* LoadingXibs */, 110 | 20BC86A41F2B2A0A0084B8FF /* AZTableViewController.swift */, 111 | 2093F0261F2F6D7600833030 /* Utility.swift */, 112 | ); 113 | path = Classes; 114 | sourceTree = ""; 115 | }; 116 | /* End PBXGroup section */ 117 | 118 | /* Begin PBXNativeTarget section */ 119 | 20BC868B1F2B28D70084B8FF /* AZ-TableViewController */ = { 120 | isa = PBXNativeTarget; 121 | buildConfigurationList = 20BC869E1F2B28D70084B8FF /* Build configuration list for PBXNativeTarget "AZ-TableViewController" */; 122 | buildPhases = ( 123 | 20BC86881F2B28D70084B8FF /* Sources */, 124 | 20BC86891F2B28D70084B8FF /* Frameworks */, 125 | 20BC868A1F2B28D70084B8FF /* Resources */, 126 | ); 127 | buildRules = ( 128 | ); 129 | dependencies = ( 130 | ); 131 | name = "AZ-TableViewController"; 132 | productName = "AZ-TableViewController"; 133 | productReference = 20BC868C1F2B28D70084B8FF /* AZ-TableViewController.app */; 134 | productType = "com.apple.product-type.application"; 135 | }; 136 | /* End PBXNativeTarget section */ 137 | 138 | /* Begin PBXProject section */ 139 | 20BC86841F2B28D70084B8FF /* Project object */ = { 140 | isa = PBXProject; 141 | attributes = { 142 | LastSwiftUpdateCheck = 0830; 143 | LastUpgradeCheck = 0830; 144 | ORGANIZATIONNAME = AfrozZaheer; 145 | TargetAttributes = { 146 | 20BC868B1F2B28D70084B8FF = { 147 | CreatedOnToolsVersion = 8.3.3; 148 | DevelopmentTeam = CASVKBQG32; 149 | LastSwiftMigration = 0900; 150 | ProvisioningStyle = Automatic; 151 | }; 152 | }; 153 | }; 154 | buildConfigurationList = 20BC86871F2B28D70084B8FF /* Build configuration list for PBXProject "AZ-TableViewController" */; 155 | compatibilityVersion = "Xcode 3.2"; 156 | developmentRegion = English; 157 | hasScannedForEncodings = 0; 158 | knownRegions = ( 159 | en, 160 | Base, 161 | ); 162 | mainGroup = 20BC86831F2B28D70084B8FF; 163 | productRefGroup = 20BC868D1F2B28D70084B8FF /* Products */; 164 | projectDirPath = ""; 165 | projectRoot = ""; 166 | targets = ( 167 | 20BC868B1F2B28D70084B8FF /* AZ-TableViewController */, 168 | ); 169 | }; 170 | /* End PBXProject section */ 171 | 172 | /* Begin PBXResourcesBuildPhase section */ 173 | 20BC868A1F2B28D70084B8FF /* Resources */ = { 174 | isa = PBXResourcesBuildPhase; 175 | buildActionMask = 2147483647; 176 | files = ( 177 | 2093F0201F2F64AD00833030 /* NoResultView.xib in Resources */, 178 | 20BC869A1F2B28D70084B8FF /* LaunchScreen.storyboard in Resources */, 179 | 2093EFF41F2F2C6400833030 /* AZTableView.podspec in Resources */, 180 | 2093F0241F2F64F600833030 /* LoadingTableViewCell.xib in Resources */, 181 | 20BC86971F2B28D70084B8FF /* Assets.xcassets in Resources */, 182 | 2093F01C1F2F648F00833030 /* LoadingView.xib in Resources */, 183 | 2093F01E1F2F649C00833030 /* ErrorView.xib in Resources */, 184 | 20BC86951F2B28D70084B8FF /* Main.storyboard in Resources */, 185 | 2093EFF61F2F44CF00833030 /* LICENSE in Resources */, 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | }; 189 | /* End PBXResourcesBuildPhase section */ 190 | 191 | /* Begin PBXSourcesBuildPhase section */ 192 | 20BC86881F2B28D70084B8FF /* Sources */ = { 193 | isa = PBXSourcesBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | 2093F0271F2F6D7600833030 /* Utility.swift in Sources */, 197 | 20BC86A81F2B2A210084B8FF /* FakeService.swift in Sources */, 198 | 20BC86901F2B28D70084B8FF /* AppDelegate.swift in Sources */, 199 | 2093F0231F2F64F600833030 /* LoadingTableViewCell.swift in Sources */, 200 | 2093EFF21F2F128C00833030 /* README.md in Sources */, 201 | 20BC86A91F2B2A210084B8FF /* ViewController.swift in Sources */, 202 | 20BC86A51F2B2A0A0084B8FF /* AZTableViewController.swift in Sources */, 203 | ); 204 | runOnlyForDeploymentPostprocessing = 0; 205 | }; 206 | /* End PBXSourcesBuildPhase section */ 207 | 208 | /* Begin PBXVariantGroup section */ 209 | 20BC86931F2B28D70084B8FF /* Main.storyboard */ = { 210 | isa = PBXVariantGroup; 211 | children = ( 212 | 20BC86941F2B28D70084B8FF /* Base */, 213 | ); 214 | name = Main.storyboard; 215 | sourceTree = ""; 216 | }; 217 | 20BC86981F2B28D70084B8FF /* LaunchScreen.storyboard */ = { 218 | isa = PBXVariantGroup; 219 | children = ( 220 | 20BC86991F2B28D70084B8FF /* Base */, 221 | ); 222 | name = LaunchScreen.storyboard; 223 | sourceTree = ""; 224 | }; 225 | /* End PBXVariantGroup section */ 226 | 227 | /* Begin XCBuildConfiguration section */ 228 | 20BC869C1F2B28D70084B8FF /* Debug */ = { 229 | isa = XCBuildConfiguration; 230 | buildSettings = { 231 | ALWAYS_SEARCH_USER_PATHS = NO; 232 | CLANG_ANALYZER_NONNULL = YES; 233 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 234 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 235 | CLANG_CXX_LIBRARY = "libc++"; 236 | CLANG_ENABLE_MODULES = YES; 237 | CLANG_ENABLE_OBJC_ARC = YES; 238 | CLANG_WARN_BOOL_CONVERSION = YES; 239 | CLANG_WARN_CONSTANT_CONVERSION = YES; 240 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 241 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 242 | CLANG_WARN_EMPTY_BODY = YES; 243 | CLANG_WARN_ENUM_CONVERSION = YES; 244 | CLANG_WARN_INFINITE_RECURSION = YES; 245 | CLANG_WARN_INT_CONVERSION = YES; 246 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 247 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 248 | CLANG_WARN_UNREACHABLE_CODE = YES; 249 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 250 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 251 | COPY_PHASE_STRIP = NO; 252 | DEBUG_INFORMATION_FORMAT = dwarf; 253 | ENABLE_STRICT_OBJC_MSGSEND = YES; 254 | ENABLE_TESTABILITY = YES; 255 | GCC_C_LANGUAGE_STANDARD = gnu99; 256 | GCC_DYNAMIC_NO_PIC = NO; 257 | GCC_NO_COMMON_BLOCKS = YES; 258 | GCC_OPTIMIZATION_LEVEL = 0; 259 | GCC_PREPROCESSOR_DEFINITIONS = ( 260 | "DEBUG=1", 261 | "$(inherited)", 262 | ); 263 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 264 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 265 | GCC_WARN_UNDECLARED_SELECTOR = YES; 266 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 267 | GCC_WARN_UNUSED_FUNCTION = YES; 268 | GCC_WARN_UNUSED_VARIABLE = YES; 269 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 270 | MTL_ENABLE_DEBUG_INFO = YES; 271 | ONLY_ACTIVE_ARCH = YES; 272 | SDKROOT = iphoneos; 273 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 274 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 275 | }; 276 | name = Debug; 277 | }; 278 | 20BC869D1F2B28D70084B8FF /* Release */ = { 279 | isa = XCBuildConfiguration; 280 | buildSettings = { 281 | ALWAYS_SEARCH_USER_PATHS = NO; 282 | CLANG_ANALYZER_NONNULL = YES; 283 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 284 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 285 | CLANG_CXX_LIBRARY = "libc++"; 286 | CLANG_ENABLE_MODULES = YES; 287 | CLANG_ENABLE_OBJC_ARC = YES; 288 | CLANG_WARN_BOOL_CONVERSION = YES; 289 | CLANG_WARN_CONSTANT_CONVERSION = YES; 290 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 291 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 292 | CLANG_WARN_EMPTY_BODY = YES; 293 | CLANG_WARN_ENUM_CONVERSION = YES; 294 | CLANG_WARN_INFINITE_RECURSION = YES; 295 | CLANG_WARN_INT_CONVERSION = YES; 296 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 297 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 298 | CLANG_WARN_UNREACHABLE_CODE = YES; 299 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 300 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 301 | COPY_PHASE_STRIP = NO; 302 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 303 | ENABLE_NS_ASSERTIONS = NO; 304 | ENABLE_STRICT_OBJC_MSGSEND = YES; 305 | GCC_C_LANGUAGE_STANDARD = gnu99; 306 | GCC_NO_COMMON_BLOCKS = YES; 307 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 308 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 309 | GCC_WARN_UNDECLARED_SELECTOR = YES; 310 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 311 | GCC_WARN_UNUSED_FUNCTION = YES; 312 | GCC_WARN_UNUSED_VARIABLE = YES; 313 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 314 | MTL_ENABLE_DEBUG_INFO = NO; 315 | SDKROOT = iphoneos; 316 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 317 | VALIDATE_PRODUCT = YES; 318 | }; 319 | name = Release; 320 | }; 321 | 20BC869F1F2B28D70084B8FF /* Debug */ = { 322 | isa = XCBuildConfiguration; 323 | buildSettings = { 324 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 325 | DEVELOPMENT_TEAM = CASVKBQG32; 326 | INFOPLIST_FILE = "AZ-TableViewController/Info.plist"; 327 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 328 | PRODUCT_BUNDLE_IDENTIFIER = "com.AZ-TableViewController.AZ-TableViewController"; 329 | PRODUCT_NAME = "$(TARGET_NAME)"; 330 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 331 | SWIFT_VERSION = 4.0; 332 | }; 333 | name = Debug; 334 | }; 335 | 20BC86A01F2B28D70084B8FF /* Release */ = { 336 | isa = XCBuildConfiguration; 337 | buildSettings = { 338 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 339 | DEVELOPMENT_TEAM = CASVKBQG32; 340 | INFOPLIST_FILE = "AZ-TableViewController/Info.plist"; 341 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 342 | PRODUCT_BUNDLE_IDENTIFIER = "com.AZ-TableViewController.AZ-TableViewController"; 343 | PRODUCT_NAME = "$(TARGET_NAME)"; 344 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 345 | SWIFT_VERSION = 4.0; 346 | }; 347 | name = Release; 348 | }; 349 | /* End XCBuildConfiguration section */ 350 | 351 | /* Begin XCConfigurationList section */ 352 | 20BC86871F2B28D70084B8FF /* Build configuration list for PBXProject "AZ-TableViewController" */ = { 353 | isa = XCConfigurationList; 354 | buildConfigurations = ( 355 | 20BC869C1F2B28D70084B8FF /* Debug */, 356 | 20BC869D1F2B28D70084B8FF /* Release */, 357 | ); 358 | defaultConfigurationIsVisible = 0; 359 | defaultConfigurationName = Release; 360 | }; 361 | 20BC869E1F2B28D70084B8FF /* Build configuration list for PBXNativeTarget "AZ-TableViewController" */ = { 362 | isa = XCConfigurationList; 363 | buildConfigurations = ( 364 | 20BC869F1F2B28D70084B8FF /* Debug */, 365 | 20BC86A01F2B28D70084B8FF /* Release */, 366 | ); 367 | defaultConfigurationIsVisible = 0; 368 | defaultConfigurationName = Release; 369 | }; 370 | /* End XCConfigurationList section */ 371 | }; 372 | rootObject = 20BC86841F2B28D70084B8FF /* Project object */; 373 | } 374 | --------------------------------------------------------------------------------