I hereby claim:
- I am shosta on github.
- I am shostarsson (https://keybase.io/shostarsson) on keybase.
- I have a public key ASDZ8qtcleJudG0HPLi_VwpDoo970mX_V3ZtsNT8H0Sabgo
To claim this, I am signing this object:
@implementation ViewController | |
- (void)loadDataAsync{ | |
// Download the Objects from a JSON file on the server | |
Downloader *dl = [[Downloader alloc] init]; | |
[dl downloadObjects:self.aID andCompletionHandler:^(NSArray *objectsArray){ | |
// Set the data to your model for instance | |
// self.mArray = objectsArray; | |
// Perform refresh on main thread. |
- (void)downloadSomethingWithoutDelegate{ | |
NSURL *url = [NSURL URLWithString:@"https://vignette.wikia.nocookie.net/vsbattles/images/4/4a/Askeladd.jpg"]; | |
NSURLSessionDownloadTask *downloadTask = [[NSURLSession sharedSession] downloadTaskWithURL:url completionHandler:^(NSURL *location, NSURLResponse *response, NSError *error) { | |
// 4 | |
downloadedImage = [UIImage imageWithData:[NSData dataWithContentsOfURL:location]]; | |
}]; | |
//3 | |
//[downloadTask resume]; |
I hereby claim:
To claim this, I am signing this object:
apt-get install cmake libqt4-dev git-core libimobiledevice-utils libplist-utils usbmuxd -y | |
curl -sSL https://get.rvm.io | bash -s stable --ruby | |
source /usr/local/rvm/scripts/rvm | |
rvm use 2.1 | |
mkdir ~/iOS && cd ~/iOS | |
git clone --recursive https://github.com/dmayer/idb.git | |
cd idb | |
bundle install | |
echo "Type 'ruby gidb.rb' to use idb's graphical user interface" |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using Windows.UI.Xaml.Controls; | |
namespace OTV.UI.Controls | |
{ | |
/// <summary> | |
/// A Class Extensions that allows to dismiss the Keyboard from a Control. | |
/// Include the "OTV.UI.Controls" namespace in your class and then call the "LoseFocus" method : |
// | |
// NSString+EmailValidating.h | |
// | |
// | |
// Created by Rems on 11/12/12. | |
// Copyright (c) 2012 . All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
#pragma mark - View | |
#define STATUS_BAR_HEIGHT [UIApplication sharedApplication].statusBarFrame.size.height | |
#define NAVIGATION_BAR_HEIGHT self.navigationController.navigationBar.bounds.size.height | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
// Do any additional setup after loading the view from its nib. | |
self.edgesForExtendedLayout = UIRectEdgeTop; |
//-------------------------------------------------------- | |
// | |
//-------------------------------------------------------- | |
// Project : | |
// File : UIView+Rotation.h | |
// Created : $ 23/05/12 $ | |
// Maintainer : $ Rémi LAVEDRINE $ | |
// | |
// Copyright Rémi LAVEDRINE 2004-2012, All Rights Reserved | |
// |
/* | |
Erica Sadun, http://ericasadun.com | |
iPhone Developer's Cookbook, 5.0 Edition | |
BSD License, Use at your own risk | |
*/ | |
#import <UIKit/UIKit.h> | |
#define IFPGA_NAMESTRING @"iFPGA" |
//-------------------------------------------------------- | |
// | |
//-------------------------------------------------------- | |
// Project : | |
// File : UILabel+Size.h | |
// Created : $ 04/05/12 $ | |
// Maintainer : $ Rémi LAVEDRINE $ | |
// | |
// Copyright Rémi LAVEDRINE 2004-2012, All Rights Reserved | |
// |