Skip to content

Instantly share code, notes, and snippets.

View objectmethod's full-sized avatar

Richard Guy objectmethod

View GitHub Profile
[RKTApplication doCrucialAction:^{
NSString *searchFieldIdentifier;
if ([[UIDevice currentDevice] SQ_isPhone]) {
searchFieldIdentifier = @"Search";
} else {
searchFieldIdentifier = @"Search All Items";
}
[tester turnOffAutocompleteForSearchField:searchFieldIdentifier];
[RKTApplication doCrucialAction:^{
<html>
<head>
<style type="text/css">
h2 {text-align:center;}
h3 {text-align:center;}
div {float: right; background-image:url('http://www.paperpresentation.com/mm5/images/pochettesb/D_PCB4141.jpg'); width: 85;}
</style>
</head>
<body>
#import <QuartzCore/QuartzCore.h>
@property (weak, nonatomic) IBOutlet UIImageView *profilePictureView;
- (void) configureProfilePic {
[self roundProfilePic];
[self addBorderToProfilePic];
}
- (void) roundProfilePic {
(lldb) po [[UIWindow keyWindow] _autolayoutTrace]
$0 = 0x0b536fa0
*<UIWindow:0xa25d4e0>
| *<UIView:0xa2635c0>
| | *<UILabel:0xa262e80>
| | *<UILabel:0xa2611a0>
| | *<UIImageView:0xa2636c0>
| | *<UIScrollView:0xa260c50>
| | | *<UIImageView:0xa269fc0>
| | | *<UIImageView:0xa26c480>
private void GetAccountPicture()
{
var image = UserInformation.GetAccountPicture(AccountPictureKind.SmallImage) as StorageFile;
if (image != null)
{
try
{
IAsyncOperation<IRandomAccessStreamWithContentType> imageStream = image.OpenReadAsync();
var bitmapImage = new BitmapImage();