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)selected:(QuickDialogTableView *)tableView controller:(QuickDialogController *)controller indexPath:(NSIndexPath *)indexPath { | |
[[tableView cellForRowAtIndexPath:indexPath] becomeFirstResponder]; | |
if (_onSelected!= nil) | |
_onSelected(); | |
if (self.controllerAction!=NULL){ | |
SEL selector = NSSelectorFromString(self.controllerAction); | |
if ([tableView.controller respondsToSelector:selector]) { | |
objc_msgSend(tableView.controller ,selector, self); |
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
namespace FireHouse.UI.iOS | |
{ | |
using System; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
using MonoTouch.ObjCRuntime; | |
public class Recognizer<T> : NSObject where T : UIGestureRecognizer, new() | |
{ | |
T fRecognizer; |
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
function(percent) { | |
var time = percent * player.getDuration(); | |
player.seekTo(time, true); | |
} |
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
public class MyContainerViewController : UIViewController { | |
public MyContainerViewController() | |
: base() { | |
} | |
public void Handle_Button1_Clicked(object sender, EventArgs e) { | |
// ..Initialize myFirstChildViewController | |
// and mySecondChildViewController here. | |
this.Transition(myFirstChildViewController, mySecondChildViewController, 1.5, |
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
myChildViewController = new MyChildViewController(); | |
this.AddChildViewController(myChildViewController); | |
this.View.AddSubView(myChildViewController.View); |
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
public T GetContainerOfType<T>(UIView view) where T : UIViewController | |
{ | |
var type = typeof(T); | |
var nextResponder = view.NextResponder; | |
if(typeof(nextResponder) == type) { | |
return nextResponder; | |
} | |
else if(typeof(nextResponder) == typeof(UIView)) { |
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.Collections.Generic; | |
namespace SozoChildrenInternational | |
{ | |
public partial class FirstViewController : UIViewController | |
{ | |
Action HideBrowserAction; | |
public FirstViewController () : base ("FirstViewController", null) | |
{ |
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
public static class UIAppearanceExtensions | |
{ | |
public static T Appearance<T>(this T obj) where T : NSObject | |
{ | |
return UIAppearance.FromObject(obj) as T; | |
} | |
} |
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
public class TreatmentViewController : DialogViewController | |
{ | |
public TreatmentViewController() | |
: base(UITableViewStyle.Plain, new RootElement("")) | |
{ | |
} | |
public override void ViewDidLoad() | |
{ | |
Root.Add(new Section("A") |
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
xcodebuild -sdk iphonesimulator -target WEPopover -configuration ${CONFIGURATION} BUILD_DIR=${BUILD_DIR} CONFIGURATION_TEMP_DIR=${CONFIGURATION_TEMP_DIR} | |
xcodebuild -sdk iphoneos -target WEPopover -configuration ${CONFIGURATION} BUILD_DIR=${BUILD_DIR} CONFIGURATION_TEMP_DIR=${CONFIGURATION_TEMP_DIR} | |
mkdir -p "${BUILD_DIR}/${CONFIGURATION}-universal" | |
lipo \ | |
"${BUILD_DIR}/${CONFIGURATION}-iphoneos/libWEPopover.a" \ | |
"${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/libWEPopover.a" \ | |
-create -output "${BUILD_DIR}/${CONFIGURATION}-universal/libWEPopover.a" |