This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)setMore | |
{ | |
BOOL moreExist = NO; | |
if (foo || bar) | |
{ | |
moreExist = YES; | |
[NSURLConnection sendAsynchronousRequest:[NSURLRequest | |
requestWithURL: [NSURL URLWithString:url]] queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad | |
{ | |
UIView* sampleView = [[UIView alloc] init]; | |
[self.view addSubview:sampleView]; | |
sampleView.backgroundColor = [UIColor redColor]; | |
// define center of view | |
CGPoint currentCenterPoint = self.view.center; | |
CGRect invisibleRect = CGRectMake(currentCenterPoint.x, currentCenterPoint.y, 0, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CoreDataManager.h | |
// | |
// Created by Rex Fatahi on 3/17/14. | |
// Copyright (c) 2014 aug2uag. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface CoreDataManager : NSObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Backbone.js 1.1.2 | |
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | |
// Backbone may be freely distributed under the MIT license. | |
// For all details and documentation: | |
// http://backbonejs.org | |
(function(root, factory) { | |
// Set up Backbone appropriately for the environment. Start with AMD. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.m | |
// remove from superview demo | |
// | |
// Created by Rex Fatahi on 5/17/14. | |
// Copyright (c) 2014 aug2uag. All rights reserved. | |
// | |
#import "ViewController.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.m | |
// gfhdsjkaryeuiw123 | |
// | |
// Created by Rex Fatahi on 6/6/14. | |
// Copyright (c) 2014 aug2uag. All rights reserved. | |
// | |
#import "ViewController.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// GingerBreadMan | |
// | |
// Created by Rex Fatahi on 6/22/14. | |
// Copyright (c) 2014 aug2uag. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma tableview datasource | |
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { | |
return 1; | |
} | |
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { | |
return 0; | |
} | |
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int randInt = arc4random() % <#number#>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section { | |
return 0.01f; | |
} | |
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { | |
return [UIView new]; | |
} |
OlderNewer