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
//first type | |
NSArray *anArray = [[NSArray alloc] init]; | |
//convenience method | |
NSString *aString = [[NSString alloc] stringWithFormat:@"something..%d.", anumber]; |
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 main(void) { | |
NSAutoreleasePool *pool; | |
pool = [[NSAutoreleasePool alloc] init]; | |
NSString *string; | |
string = [[[NSString alloc] init] autorelease]; | |
/* use the string */ | |
[pool drain]; | |
} |
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) dealloc { | |
[first release]; | |
[last release]; | |
[email release]; | |
[super dealloc]; | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" creationComplete="init()"> | |
<mx:Script> | |
<![CDATA[ | |
import mx.collections.SortField; | |
import mx.collections.Sort; | |
import mx.collections.ArrayCollection; | |
[Bindable] |
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 mark UITabBarController customisation to add background image | |
//In your appDelegate, just use categories to add functionality to UITabBarController | |
//overloading viewDidLoad. No need to subclass | |
@implementation UITabBarController (UITabBarControllerCategory) | |
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
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
// | |
// Constants.m | |
// myApp | |
// | |
// Created by Doron Katz on 15/06/11. | |
// Copyright 2011 doronkatz.com. All rights reserved. | |
// | |
//URLS | |
extern NSString* const kDBRestKitBaseURL; |
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
#ifdef __OBJC__ | |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> | |
#import "TestFlight.h" | |
#import "Constants.h" | |
#endif | |
#define TESTING |
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
$ sudo /usr/bin/xcode-select -switch /Applications/Xcode.app |
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
'use strict'; | |
var app = angular.module('chapter4App', | |
['directives', 'services']); | |
app.config(['$routeProvider', function($routeProvider) { | |
$routeProvider. | |
when('/', { | |
controller: 'ListCtrl', | |
resolve: { |
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
'use strict'; | |
var app = angular.module('chapter4App', | |
['directives', 'services']); | |
app.config(['$routeProvider', function($routeProvider) { | |
$routeProvider. | |
when('/', { | |
controller: 'ListCtrl', | |
resolve: { |
OlderNewer