Mikhail Kuznetsov avatar Mikhail Kuznetsov committed d23622f

pass object to detail view instead of id;

Comments (0)

Files changed (9)

MyShows.xcodeproj/project.pbxproj

 		186C58CC145C39F000B0E53E /* TvShow.m in Sources */ = {isa = PBXBuildFile; fileRef = 186C58CB145C39F000B0E53E /* TvShow.m */; };
 		186C58CF145C464500B0E53E /* tv_show_placeholder.png in Resources */ = {isa = PBXBuildFile; fileRef = 186C58CE145C464500B0E53E /* tv_show_placeholder.png */; };
 		189812A41466A47C00D49096 /* ShowDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 189812A31466A47C00D49096 /* ShowDetailViewController.m */; };
+		189812A81466D5A600D49096 /* UIImage+UIImage_Resize.m in Sources */ = {isa = PBXBuildFile; fileRef = 189812A71466D5A600D49096 /* UIImage+UIImage_Resize.m */; };
 		18C1DFBB1453136F00687C0B /* LoginViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18C1DFBA1453136F00687C0B /* LoginViewController.m */; };
 		18C1DFC1145315B500687C0B /* ShowsListTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18C1DFC0145315B500687C0B /* ShowsListTableViewController.m */; };
 		18EE6BAC1452D55F00A4D065 /* NSString+Hash.m in Sources */ = {isa = PBXBuildFile; fileRef = 18EE6BAB1452D55F00A4D065 /* NSString+Hash.m */; };
 		186C58CE145C464500B0E53E /* tv_show_placeholder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tv_show_placeholder.png; sourceTree = "<group>"; };
 		189812A21466A47C00D49096 /* ShowDetailViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShowDetailViewController.h; sourceTree = "<group>"; };
 		189812A31466A47C00D49096 /* ShowDetailViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ShowDetailViewController.m; sourceTree = "<group>"; };
+		189812A61466D5A600D49096 /* UIImage+UIImage_Resize.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIImage+UIImage_Resize.h"; path = "Categories/UIImage+UIImage_Resize.h"; sourceTree = "<group>"; };
+		189812A71466D5A600D49096 /* UIImage+UIImage_Resize.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIImage+UIImage_Resize.m"; path = "Categories/UIImage+UIImage_Resize.m"; sourceTree = "<group>"; };
 		18C1DFB91453136F00687C0B /* LoginViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LoginViewController.h; sourceTree = "<group>"; };
 		18C1DFBA1453136F00687C0B /* LoginViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LoginViewController.m; sourceTree = "<group>"; };
 		18C1DFBF145315B500687C0B /* ShowsListTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShowsListTableViewController.h; sourceTree = "<group>"; };
 			children = (
 				18EE6BAA1452D55F00A4D065 /* NSString+Hash.h */,
 				18EE6BAB1452D55F00A4D065 /* NSString+Hash.m */,
+				189812A61466D5A600D49096 /* UIImage+UIImage_Resize.h */,
+				189812A71466D5A600D49096 /* UIImage+UIImage_Resize.m */,
 			);
 			name = Categories;
 			sourceTree = "<group>";
 				186C58CC145C39F000B0E53E /* TvShow.m in Sources */,
 				184043E8145D9A6300DE0A94 /* TvShowCell.m in Sources */,
 				189812A41466A47C00D49096 /* ShowDetailViewController.m in Sources */,
+				189812A81466D5A600D49096 /* UIImage+UIImage_Resize.m in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};

MyShows/Categories/UIImage+UIImage_Resize.h

+//
+//  UIImage+UIImage_Resize.h
+//  MyShows
+//
+//  Created by Mikhail Kuznetsov on 06.11.11.
+//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface UIImage (UIImage_Resize)
+
++ (UIImage *)resizeImage:(UIImage *)image toSize:(CGSize)toSize;
+
+@end

MyShows/Categories/UIImage+UIImage_Resize.m

+//
+//  UIImage+UIImage_Resize.m
+//  MyShows
+//
+//  Created by Mikhail Kuznetsov on 06.11.11.
+//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import "UIImage+UIImage_Resize.h"
+
+@implementation UIImage (UIImage_Resize)
+
++ (UIImage *)resizeImage:(UIImage *)image toSize:(CGSize)toSize {
+    if (image.size.width != toSize.width && image.size.height != toSize.height) {
+        UIGraphicsBeginImageContext(toSize);
+        CGRect imageRect = CGRectMake(0.0, 0.0, toSize.width, toSize.height);
+        [image drawInRect:imageRect];
+        image = UIGraphicsGetImageFromCurrentImageContext();
+        UIGraphicsEndImageContext();
+    }
+    return image;
+}
+
+@end

MyShows/Controllers/ShowDetailViewController.h

 
 @interface ShowDetailViewController : UIViewController <ApiDelegate, AsyncImageDelegate> {
     MyShowsApi *api;
-    TvShow *show;
 }
 
-@property (nonatomic, retain) NSNumber *showId;
-@property (retain, nonatomic) IBOutlet UILabel *enTitle;
+@property (nonatomic, retain) TvShow *show;
+
+@property (retain, nonatomic) IBOutlet UILabel *ruTitle;
+@property (retain, nonatomic) IBOutlet UILabel *showStatus;
+@property (retain, nonatomic) IBOutlet UILabel *country;
+@property (retain, nonatomic) IBOutlet UILabel *year;
+@property (retain, nonatomic) IBOutlet UILabel *watching;
+@property (retain, nonatomic) IBOutlet UILabel *rating;
+@property (retain, nonatomic) IBOutlet UILabel *runtime;
+@property (retain, nonatomic) IBOutlet UIImageView *imageView;
 
 @end

MyShows/Controllers/ShowDetailViewController.m

 #import "ShowDetailViewController.h"
 #import "SVProgressHUD.h"
 #import "TvShow.h"
+#import "UIImage+UIImage_Resize.h"
+#import "ImageManager.h"
 
 @implementation ShowDetailViewController
 
-@synthesize showId;
-@synthesize enTitle;
+@synthesize show, ruTitle, showStatus, country, year, watching, rating, runtime, imageView;
 
 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
 {
     
     api = [[MyShowsApi alloc] init];
     [api setResponder:self];
+    
+    [self.navigationItem setTitle:show.enTitle];
 }
 
 - (void)viewDidUnload
 
     [api sendRequest:@"showDetails" 
         path:[[NSString alloc] initWithFormat:[api getUrlForResource:@"showDetails"],
-                                          [self.showId stringValue]
+                                          [show.showId stringValue]
                                           ] 
          queryParams:nil];
 }
         NSDictionary *loaded_show = [data objectForKey:@"data"];
                 
         if ([loaded_show isKindOfClass:[NSDictionary class]]){
-            show = [[TvShow alloc] initWithDictionary:loaded_show];
-            enTitle.text = show.enTitle;
+            //[show updateWithDictionary:loaded_show];
+            ruTitle.text = show.ruTitle;
+            showStatus.text = show.showStatus;
+            country.text = show.country;
+            year.text = [show.year stringValue];
+            watching.text = [show.watching stringValue];
+            runtime.text = [show.runtime stringValue];
+            
+            UIImage *image;
+            image = [ImageManager 
+                     loadImage:[[NSURL alloc] initWithString:show.imageUrl] 
+                     userInfo:[[NSDictionary alloc] initWithObjectsAndKeys:
+                               self, @"delegate",
+                               nil
+                               ]
+                     ];
+            if (image) {
+                image = [UIImage resizeImage:image toSize:CGSizeMake(139.0, 139.0)];
+                show.image = image;
+                imageView.image = image;
+            }
+            else {
+                imageView.image = [UIImage imageNamed:@"tv_show_placeholder2.png"];
+            }
         }        
     }
     else {
     
 }
 
+#pragma mark - AsyncImageDelegate
+
+- (void) imageLoaded:(UIImage *)image userInfo:(NSDictionary *)userInfo {
+    image = [UIImage resizeImage:image toSize:CGSizeMake(139.0, 139.0)];
+    [show setImage:image];
+    imageView.image = [show image];
+}
+
 @end

MyShows/Controllers/ShowsListTableViewController.m

 #import "TvShow.h"
 #import "TvShowCell.h"
 #import "ShowDetailViewController.h"
+#import "UIImage+UIImage_Resize.h"
 
 
 @implementation ShowsListTableViewController
 
 - (void) imageLoaded:(UIImage *)image userInfo:(NSDictionary *)userInfo {
     if ([userInfo objectForKey:@"indexPath"]){
-        image = [self resizeImage:image];
+        image = [UIImage resizeImage:image toSize:CGSizeMake(61.0, 61.0)];
         [(TvShow *)[shows objectAtIndex:(NSUInteger)[[userInfo objectForKey:@"indexPath"] row]] setImage:image];
         UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:(NSIndexPath *)[userInfo objectForKey:@"indexPath"]];
         cell.imageView.image = [(TvShow *)[shows objectAtIndex:(NSUInteger)[[userInfo objectForKey:@"indexPath"] row]] image];
 
 #pragma mark - Custom methods
 
-- (UIImage *)resizeImage:(UIImage *)image {
-    if (image.size.width != 61 && image.size.height != 61) {
-        CGSize imageSize = CGSizeMake(61, 61);
-        UIGraphicsBeginImageContext(imageSize);
-        CGRect imageRect = CGRectMake(0.0, 0.0, imageSize.width, imageSize.height);
-        [image drawInRect:imageRect];
-        image = UIGraphicsGetImageFromCurrentImageContext();
-        UIGraphicsEndImageContext();
-    }
-    return image;
-}
-
 - (void)loadImagesForOnscreenRows {
     if ([shows count] > 0) {
         for (NSIndexPath *indexPath in [self.tableView indexPathsForVisibleRows]) {
             image = [self loadImage:currentShow indexPath:indexPath];
         }
         if (image) {
-            image = [self resizeImage:image];
+            image = [UIImage resizeImage:image toSize:CGSizeMake(61.0, 61.0)];
             currentShow.image = image;
             cell.imageView.image = image;
         }
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
     if ([segue.identifier isEqualToString:@"show_detail"]) {
         ShowDetailViewController *controller = (ShowDetailViewController *)segue.destinationViewController;
-        [controller setShowId:[(TvShow *)[shows objectAtIndex:[self.detailPath row]] showId]];
-        [controller.navigationItem setTitle:[(TvShow *)[shows objectAtIndex:[self.detailPath row]] enTitle]];
+        [controller setShow:(TvShow *)[shows objectAtIndex:[self.detailPath row]]];
     }
     else {
         [super prepareForSegue:segue sender:sender];

MyShows/Models/TvShow.h

     NSNumber *_watchedEpisodes;
     NSNumber *_totalEpisodes;
     NSNumber *_ratingValue;
+    NSNumber *_year;
+    NSString *_country;
+    NSNumber *_kinopoiskId;
+    NSNumber *_tvrageId;
+    NSNumber *_imdbId;
+    NSNumber *_watching;
+    NSNumber *_runtime;
     
     //Object fields
     UIImage *_image;
 @property (nonatomic, retain) NSNumber *watchedEpisodes;
 @property (nonatomic, retain) NSNumber *totalEpisodes;
 @property (nonatomic, retain) NSNumber *ratingValue;
+@property (nonatomic, retain) NSNumber *year;
+@property (nonatomic, retain) NSString *country;
+@property (nonatomic, retain) NSNumber *kinopoiskId;
+@property (nonatomic, retain) NSNumber *tvrageId;
+@property (nonatomic, retain) NSNumber *imdbId;
+@property (nonatomic, retain) NSNumber *watching;
+@property (nonatomic, retain) NSNumber *runtime;
+
 @property (nonatomic, retain) UIImage *rating;
 @property (nonatomic, retain) UIImage *image;
 

MyShows/Models/TvShow.m

 @synthesize totalEpisodes = _totalEpisodes;
 @synthesize watchedEpisodes = _watchedEpisodes;
 @synthesize ratingValue = _ratingValue;
+@synthesize country = _country;
+@synthesize year = _year;
+@synthesize kinopoiskId = _kinopoiskId;
+@synthesize tvrageId = _tvrageId;
+@synthesize imdbId = _imdbId;
+@synthesize watching = _watching;
+@synthesize runtime = _runtime;
 @synthesize rating = _rating;
 @synthesize image = _image;
 

MyShows/en.lproj/MainStoryboard.storyboard

                                 <rect key="frame" x="20" y="217" width="280" height="31"/>
                                 <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                                 <fontDescription key="fontDescription" type="system" pointSize="14"/>
-                                <textInputTraits key="textInputTraits"/>
+                                <textInputTraits key="textInputTraits" secureTextEntry="YES"/>
                                 <connections>
                                     <action selector="closeKeyBoard:" destination="2" eventType="editingDidEndOnExit" id="yQP-ic-BpE"/>
                                 </connections>
                                 <rect key="frame" x="0.0" y="0.0" width="320" height="367"/>
                                 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                 <subviews>
-                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Label" lineBreakMode="tailTruncation" minimumFontSize="10" id="VuU-t8-fIY">
-                                        <rect key="frame" x="139" y="20" width="42" height="21"/>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="ruTitle" lineBreakMode="tailTruncation" minimumFontSize="10" id="VuU-t8-fIY">
+                                        <rect key="frame" x="20" y="20" width="280" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <imageView userInteractionEnabled="NO" contentMode="scaleToFill" id="afE-94-hkJ">
+                                        <rect key="frame" x="20" y="49" width="139" height="139"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                    </imageView>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Статус:" lineBreakMode="tailTruncation" minimumFontSize="10" id="xTG-L4-XLJ">
+                                        <rect key="frame" x="167" y="49" width="48" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="status" lineBreakMode="tailTruncation" minimumFontSize="10" id="XVx-Dy-iVt">
+                                        <rect key="frame" x="223" y="49" width="77" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Страна:" lineBreakMode="tailTruncation" minimumFontSize="10" id="K8r-0w-xam">
+                                        <rect key="frame" x="167" y="78" width="48" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="country" lineBreakMode="tailTruncation" minimumFontSize="10" id="KLU-7B-LXa">
+                                        <rect key="frame" x="223" y="78" width="77" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Год:" lineBreakMode="tailTruncation" minimumFontSize="10" id="6cK-ad-xsF">
+                                        <rect key="frame" x="167" y="107" width="48" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="year" lineBreakMode="tailTruncation" minimumFontSize="10" id="S2C-or-rX2">
+                                        <rect key="frame" x="223" y="107" width="77" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Смотрят:" lineBreakMode="tailTruncation" minimumFontSize="10" id="qmv-nd-2ah">
+                                        <rect key="frame" x="167" y="136" width="48" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="watching" lineBreakMode="tailTruncation" minimumFontSize="10" id="RJu-aI-Y8n">
+                                        <rect key="frame" x="223" y="136" width="77" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Рейтинг:" lineBreakMode="tailTruncation" minimumFontSize="10" id="aI8-4A-T3n">
+                                        <rect key="frame" x="20" y="194" width="48" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="rating" lineBreakMode="tailTruncation" minimumFontSize="10" id="IJ3-f7-OSg">
+                                        <rect key="frame" x="76" y="191" width="83" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Серия:" lineBreakMode="tailTruncation" minimumFontSize="10" id="hlx-vK-qO6">
+                                        <rect key="frame" x="167" y="165" width="48" height="21"/>
+                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                        <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                        <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+                                        <nil key="highlightedColor"/>
+                                    </label>
+                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="runtime" lineBreakMode="tailTruncation" minimumFontSize="10" id="1EG-ms-pCY">
+                                        <rect key="frame" x="223" y="165" width="77" height="21"/>
                                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                                         <fontDescription key="fontDescription" type="system" pointSize="17"/>
                                         <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
                     </view>
                     <navigationItem key="navigationItem" id="pIn-1H-XqX"/>
                     <connections>
-                        <outlet property="enTitle" destination="VuU-t8-fIY" id="TI8-LX-il3"/>
+                        <outlet property="country" destination="KLU-7B-LXa" id="xhQ-ZC-mKx"/>
+                        <outlet property="imageView" destination="afE-94-hkJ" id="7nV-Ux-pEz"/>
+                        <outlet property="rating" destination="IJ3-f7-OSg" id="jew-Ia-cgU"/>
+                        <outlet property="ruTitle" destination="VuU-t8-fIY" id="Ocn-av-5C4"/>
+                        <outlet property="runtime" destination="1EG-ms-pCY" id="PJV-wB-Una"/>
+                        <outlet property="showStatus" destination="XVx-Dy-iVt" id="Lab-pF-GXx"/>
+                        <outlet property="watching" destination="RJu-aI-Y8n" id="pzn-am-ZYR"/>
+                        <outlet property="year" destination="S2C-or-rX2" id="bp9-F5-j1S"/>
                     </connections>
                 </viewController>
             </objects>
         <class className="ShowDetailViewController" superclassName="UIViewController">
             <source key="sourceIdentifier" type="project" relativePath="./Classes/ShowDetailViewController.h"/>
             <relationships>
-                <relationship kind="outlet" name="enTitle" candidateClass="UILabel"/>
+                <relationship kind="outlet" name="country" candidateClass="UILabel"/>
+                <relationship kind="outlet" name="imageView" candidateClass="UIImageView"/>
+                <relationship kind="outlet" name="rating" candidateClass="UILabel"/>
+                <relationship kind="outlet" name="ruTitle" candidateClass="UILabel"/>
+                <relationship kind="outlet" name="runtime" candidateClass="UILabel"/>
+                <relationship kind="outlet" name="showStatus" candidateClass="UILabel"/>
+                <relationship kind="outlet" name="watching" candidateClass="UILabel"/>
+                <relationship kind="outlet" name="year" candidateClass="UILabel"/>
             </relationships>
         </class>
         <class className="ShowsListTableViewController" superclassName="UITableViewController">
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.