Skip to content

Instantly share code, notes, and snippets.

@blork
blork / gist:4344713
Created December 20, 2012 11:11
Gmail Modal
//On presenting the modal...
UIImageView *backView = [[UIImageView alloc] initWithImage:[self.navigationController.view screenshot]];
[backView setTag:1338];
[self.navigationController.view addSubview:backView];
UIView *maskView = [[UIView alloc] initWithFrame:self.navigationController.view.frame];
[maskView setBackgroundColor:[UIColor blackColor]];
[maskView setTag:1337];
[self.navigationController.view addSubview:maskView];
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://tempuri.org/">
<soap:Body xmlns:a="http://schemas.datacontract.org/2004/07/WebServices.DataContract" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<SaveQualityInspections>
<qualityInspections>
<a:QualityInspections>
<a:QualityInspection>
<a:Answers>
<a:QualityInspectionAnswer>
<a:QuestionId>b505bbc0-c9d3-4f28-ab43-d12a498a229d</a:QuestionId>
Test
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *StoreCellIdentifier = @"StoreCellIdentifier";
static BOOL nibsRegistered = NO;
if (!nibsRegistered) {
UINib *nib = [UINib nibWithNibName:@"StoreLocationCell" bundle:nil];
[tableView registerNib:nib forCellReuseIdentifier:StoreCellIdentifier];
nibsRegistered = YES;
}
data = {
"pair_1":
[
{ # Sentence 1
("the","cat","sat") : set([]),
("cat","sat","on") : set([])
},
{ # Sentence 2
("the","cat","sat") : set([]),
("cat","sat","on") : set([])
{
"routes": [
{
"bounds": {
"northeast": {
"lat": 53.38149,
"lng": -1.42853
},
"southwest": {
"lat": 53.35274,