     
     func refreshData(view: RefreshLoadView) {
         
-        //
+        //refresh data
         dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), {
+            
             sleep(1)
             dispatch_async(dispatch_get_main_queue(), {
                 
-                
+                //end refresh
                 self.refreshloadView.endRefresh(self.table_view)
             });
         });

    
    func loadData(view: RefreshLoadView) {
        
        
        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), {
            sleep(1)
            dispatch_async(dispatch_get_main_queue(), {
                
                self.refreshloadView.endLoadMore(self.table_view)
            });
        });

    override func viewDidLoad() {
        super.viewDidLoad()
        
        //add Test Data
        for i in 1...(100) {
            allObjectArray.addObject(i.description)
        }
        
        //Initial
        refreshloadView  = RefreshLoadView(frame: CGRectMake(95, 0, table_view.frame.width, table_view.frame.height), pic_size: CGFloat(30), insert_size: CGFloat(50))
        
        //have 25 item on each page
        refreshloadView.pageItems = 25
        
        //set Data
        refreshloadView.setData(allObjectArray)
        refreshloadView.delegate = self
        
        //add RefreshLoadView to tableView
        table_view.addSubview(refreshloadView)
    }
    
