             })
             
             if (reloadRequired) {
+                self?.isPhotosCanAccess = true
                 self?.tableView.reloadData()
             }
         }
     }
-    
-    
 }

        UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)!)
    }
    
    

    // MARK: - Table view data source

    override func numberOfSectionsInTableView(tableView: UITableView) -> Int {

            let assetFetchResult = PHAsset.fetchKeyAssetsInAssetCollection(collection, options: nil)
             assetGirdVC.assetsFetchResults = assetFetchResult
            assetGirdVC.assetCollection = collection
        }
    }
}

extension PhotosTVC: PHPhotoLibraryChangeObserver {
    
    func photoLibraryDidChange(changeInstance: PHChange) {
        dispatch_async(dispatch_get_main_queue()) { [weak self] in
            var reloadRequired = false
            self?.sectionFetchResults =  self?.sectionFetchResults?.map({ (result) -> PHFetchResult in
                let fetchResult = result as! PHFetchResult
                if let changeDetail = changeInstance.changeDetailsForFetchResult(fetchResult) {
