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)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
if ([cell respondsToSelector:@selector(tintColor)]) { | |
if (tableView == self.tableView) { | |
CGFloat cornerRadius = 5.f; | |
cell.backgroundColor = UIColor.clearColor; | |
CAShapeLayer *layer = [[CAShapeLayer alloc] init]; | |
CGMutablePathRef pathRef = CGPathCreateMutable(); | |
CGRect bounds = CGRectInset(cell.bounds, 10, 0); | |
BOOL addLine = NO; |
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 isFacebookLoggedInAndiOS6 = [SimpleSocial isFacebookAvailable]; | |
BOOL isTwitterLoggedInAndiOS6 = [SimpleSocial isTwitterAvailable]; | |
BOOL isSmsAvailable = [SimpleSocial isSmsAvailable]; | |
BOOL isEmailAvailable = [SimpleSocial isEmailAvailable]; |
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
@implementation ViewControllerChild | |
{ | |
// For holding the simple social instance | |
SimpleSocial *_simpleSocial; | |
// An outlet to the button, so we can show/hide only when Facebook is available | |
__weak IBOutlet UIButton *_shareBtn; | |
} | |
- (void)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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Web; | |
using System.Net.Mail; | |
using System.Net.Mime; | |
/// <summary> |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
using System.Data.Entity; | |
using System.Globalization; | |
using System.Linq; | |
using System.Web.Security; | |
class Example |
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
/// | |
/// UPDATE NuGET PACKAGES | |
/// | |
Once a project is created, be sure to run "update-packages" to get the latest version of each package | |
/// | |
/// To ensure NuGet packages are working on teammate machines: | |
/// Go tools -> Options -> Package Manager -> General | |
/// Check "Allow NuGet to download missing packages during build | |
/// Right click on the project solution |
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
// | |
// SimpleCaptureSession.h | |
// | |
// Copyright (c) 2013 Erik Ralston | |
// | |
// MIT License | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
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
// | |
// SimpleDatabase.h | |
// | |
// Copyright (c) 2013 Erik Ralston | |
// | |
// MIT License | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
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
/// <summary> | |
/// Class for holding extensions for the HtmlHelper function | |
/// </summary> | |
public static class HtmlHelperExtensions | |
{ | |
/// <summary> | |
/// Returns true if the build is DEBUG; otherwise, returns false | |
/// </summary> | |
/// <param name="htmlHelper"></param> | |
/// <returns></returns> |