Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #59 from ParsePlatform/nlutsenko.demo_fix
Browse files Browse the repository at this point in the history
Few small fixes for ParseUIDemo in ObjC.
  • Loading branch information
nlutsenko committed Feb 28, 2015
2 parents b43ecc9 + 087c290 commit 7a6a51e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ - (void)objectsDidLoad:(NSError *)error {
[self.tableView reloadData];
}

- (PFObject *)objectAtIndex:(NSIndexPath *)indexPath {
NSArray *sectionAray = _sections[_sectionSortedKeys[indexPath.section]];
return sectionAray[indexPath.row];
- (PFObject *)objectAtIndexPath:(NSIndexPath *)indexPath {
NSArray *sectionArray = _sections[_sectionSortedKeys[indexPath.section]];
return sectionArray[indexPath.row];
}

#pragma mark -
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
cell = [[PFTableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:cellIdentifier];
}

cell.textLabel.text = object[@"title"];
cell.textLabel.text = object[@"name"];
cell.detailTextLabel.text = @"@parseit";

cell.imageView.image = [UIImage imageNamed:@"Icon.png"];
Expand Down
17 changes: 3 additions & 14 deletions ParseUIDemo/Resources/SimpleQueryCollectionStoryboard.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6254" systemVersion="14D72i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7515.2" systemVersion="14D72i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6246"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7512"/>
</dependencies>
<scenes>
<!--Storyboard Collection-->
Expand All @@ -18,17 +17,7 @@
<size key="footerReferenceSize" width="0.0" height="0.0"/>
<inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
</collectionViewFlowLayout>
<cells>
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="T5w-FE-mR5">
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
<autoresizingMask key="autoresizingMask"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
</collectionViewCell>
</cells>
<cells/>
<connections>
<outlet property="dataSource" destination="EI1-oL-qCe" id="9Vv-VT-w3m"/>
<outlet property="delegate" destination="EI1-oL-qCe" id="SIB-7c-14a"/>
Expand Down
12 changes: 2 additions & 10 deletions ParseUIDemo/Resources/SimpleQueryTableStoryboard.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6254" systemVersion="14D72i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7515.2" systemVersion="14D72i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6246"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7512"/>
</dependencies>
<scenes>
<!--Storyboard Table-->
Expand All @@ -13,14 +13,6 @@
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="acj-m0-sNf">
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="acj-m0-sNf" id="obM-Tq-NYq">
<autoresizingMask key="autoresizingMask"/>
</tableViewCellContentView>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="YGF-na-w3S" id="1F6-RA-bj5"/>
<outlet property="delegate" destination="YGF-na-w3S" id="BKH-wT-3qk"/>
Expand Down

0 comments on commit 7a6a51e

Please sign in to comment.