├── PSDCell.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── Petros.xcuserdatad │ └── xcschemes │ ├── PSDCell.xcscheme │ └── xcschememanagement.plist ├── PSDCell ├── AppDelegate.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── PSDCell.swift ├── Sea.jpg ├── ViewController.swift ├── adele.jpg ├── back1.png ├── back2.png ├── back3.png ├── ballon.png └── elvis.jpg ├── PSDCellTests ├── Info.plist └── PSDCellTests.swift ├── PSDCellUITests ├── Info.plist └── PSDCellUITests.swift └── README.md /PSDCell.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 8F9BB58D1C1E3A080032A95D /* back1.png in Resources */ = {isa = PBXBuildFile; fileRef = 8F9BB58A1C1E3A080032A95D /* back1.png */; }; 11 | 8F9BB58E1C1E3A080032A95D /* back2.png in Resources */ = {isa = PBXBuildFile; fileRef = 8F9BB58B1C1E3A080032A95D /* back2.png */; }; 12 | 8F9BB58F1C1E3A080032A95D /* back3.png in Resources */ = {isa = PBXBuildFile; fileRef = 8F9BB58C1C1E3A080032A95D /* back3.png */; }; 13 | 8F9BB5931C1E428A0032A95D /* Sea.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8F9BB5921C1E428A0032A95D /* Sea.jpg */; }; 14 | 8F9BB5951C1E43EA0032A95D /* elvis.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8F9BB5941C1E43EA0032A95D /* elvis.jpg */; }; 15 | 8F9BB5971C1E44F50032A95D /* ballon.png in Resources */ = {isa = PBXBuildFile; fileRef = 8F9BB5961C1E44F50032A95D /* ballon.png */; }; 16 | 8F9BB5991C1E466F0032A95D /* adele.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8F9BB5981C1E466F0032A95D /* adele.jpg */; }; 17 | 8F9BB59A1C1E466F0032A95D /* adele.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 8F9BB5981C1E466F0032A95D /* adele.jpg */; }; 18 | 8FFA353D1C1DF6F90003CBBC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FFA353C1C1DF6F90003CBBC /* AppDelegate.swift */; }; 19 | 8FFA353F1C1DF6F90003CBBC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FFA353E1C1DF6F90003CBBC /* ViewController.swift */; }; 20 | 8FFA35421C1DF6F90003CBBC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8FFA35401C1DF6F90003CBBC /* Main.storyboard */; }; 21 | 8FFA35441C1DF6F90003CBBC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8FFA35431C1DF6F90003CBBC /* Assets.xcassets */; }; 22 | 8FFA35471C1DF6F90003CBBC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8FFA35451C1DF6F90003CBBC /* LaunchScreen.storyboard */; }; 23 | 8FFA35521C1DF6FA0003CBBC /* PSDCellTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FFA35511C1DF6FA0003CBBC /* PSDCellTests.swift */; }; 24 | 8FFA355D1C1DF6FA0003CBBC /* PSDCellUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FFA355C1C1DF6FA0003CBBC /* PSDCellUITests.swift */; }; 25 | 8FFA356B1C1DF7D50003CBBC /* PSDCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FFA356A1C1DF7D50003CBBC /* PSDCell.swift */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 8FFA354E1C1DF6FA0003CBBC /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 8FFA35311C1DF6F90003CBBC /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 8FFA35381C1DF6F90003CBBC; 34 | remoteInfo = PSDCell; 35 | }; 36 | 8FFA35591C1DF6FA0003CBBC /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = 8FFA35311C1DF6F90003CBBC /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 8FFA35381C1DF6F90003CBBC; 41 | remoteInfo = PSDCell; 42 | }; 43 | /* End PBXContainerItemProxy section */ 44 | 45 | /* Begin PBXFileReference section */ 46 | 8F9BB58A1C1E3A080032A95D /* back1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = back1.png; sourceTree = ""; }; 47 | 8F9BB58B1C1E3A080032A95D /* back2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = back2.png; sourceTree = ""; }; 48 | 8F9BB58C1C1E3A080032A95D /* back3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = back3.png; sourceTree = ""; }; 49 | 8F9BB5921C1E428A0032A95D /* Sea.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = Sea.jpg; sourceTree = ""; }; 50 | 8F9BB5941C1E43EA0032A95D /* elvis.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = elvis.jpg; sourceTree = ""; }; 51 | 8F9BB5961C1E44F50032A95D /* ballon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ballon.png; sourceTree = ""; }; 52 | 8F9BB5981C1E466F0032A95D /* adele.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = adele.jpg; sourceTree = ""; }; 53 | 8FFA35391C1DF6F90003CBBC /* PSDCell.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PSDCell.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 8FFA353C1C1DF6F90003CBBC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 55 | 8FFA353E1C1DF6F90003CBBC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 56 | 8FFA35411C1DF6F90003CBBC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 57 | 8FFA35431C1DF6F90003CBBC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 58 | 8FFA35461C1DF6F90003CBBC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 59 | 8FFA35481C1DF6F90003CBBC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 60 | 8FFA354D1C1DF6FA0003CBBC /* PSDCellTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PSDCellTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | 8FFA35511C1DF6FA0003CBBC /* PSDCellTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PSDCellTests.swift; sourceTree = ""; }; 62 | 8FFA35531C1DF6FA0003CBBC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 63 | 8FFA35581C1DF6FA0003CBBC /* PSDCellUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PSDCellUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 64 | 8FFA355C1C1DF6FA0003CBBC /* PSDCellUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PSDCellUITests.swift; sourceTree = ""; }; 65 | 8FFA355E1C1DF6FA0003CBBC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 66 | 8FFA356A1C1DF7D50003CBBC /* PSDCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PSDCell.swift; sourceTree = ""; }; 67 | /* End PBXFileReference section */ 68 | 69 | /* Begin PBXFrameworksBuildPhase section */ 70 | 8FFA35361C1DF6F90003CBBC /* Frameworks */ = { 71 | isa = PBXFrameworksBuildPhase; 72 | buildActionMask = 2147483647; 73 | files = ( 74 | ); 75 | runOnlyForDeploymentPostprocessing = 0; 76 | }; 77 | 8FFA354A1C1DF6FA0003CBBC /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | 8FFA35551C1DF6FA0003CBBC /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | /* End PBXFrameworksBuildPhase section */ 92 | 93 | /* Begin PBXGroup section */ 94 | 8FFA35301C1DF6F90003CBBC = { 95 | isa = PBXGroup; 96 | children = ( 97 | 8FFA353B1C1DF6F90003CBBC /* PSDCell */, 98 | 8FFA35501C1DF6FA0003CBBC /* PSDCellTests */, 99 | 8FFA355B1C1DF6FA0003CBBC /* PSDCellUITests */, 100 | 8FFA353A1C1DF6F90003CBBC /* Products */, 101 | ); 102 | sourceTree = ""; 103 | }; 104 | 8FFA353A1C1DF6F90003CBBC /* Products */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 8FFA35391C1DF6F90003CBBC /* PSDCell.app */, 108 | 8FFA354D1C1DF6FA0003CBBC /* PSDCellTests.xctest */, 109 | 8FFA35581C1DF6FA0003CBBC /* PSDCellUITests.xctest */, 110 | ); 111 | name = Products; 112 | sourceTree = ""; 113 | }; 114 | 8FFA353B1C1DF6F90003CBBC /* PSDCell */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 8FFA353C1C1DF6F90003CBBC /* AppDelegate.swift */, 118 | 8FFA353E1C1DF6F90003CBBC /* ViewController.swift */, 119 | 8FFA356A1C1DF7D50003CBBC /* PSDCell.swift */, 120 | 8F9BB5941C1E43EA0032A95D /* elvis.jpg */, 121 | 8FFA35401C1DF6F90003CBBC /* Main.storyboard */, 122 | 8FFA35431C1DF6F90003CBBC /* Assets.xcassets */, 123 | 8F9BB58A1C1E3A080032A95D /* back1.png */, 124 | 8F9BB58B1C1E3A080032A95D /* back2.png */, 125 | 8F9BB58C1C1E3A080032A95D /* back3.png */, 126 | 8F9BB5921C1E428A0032A95D /* Sea.jpg */, 127 | 8F9BB5961C1E44F50032A95D /* ballon.png */, 128 | 8F9BB5981C1E466F0032A95D /* adele.jpg */, 129 | 8FFA35451C1DF6F90003CBBC /* LaunchScreen.storyboard */, 130 | 8FFA35481C1DF6F90003CBBC /* Info.plist */, 131 | ); 132 | path = PSDCell; 133 | sourceTree = ""; 134 | }; 135 | 8FFA35501C1DF6FA0003CBBC /* PSDCellTests */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 8FFA35511C1DF6FA0003CBBC /* PSDCellTests.swift */, 139 | 8FFA35531C1DF6FA0003CBBC /* Info.plist */, 140 | ); 141 | path = PSDCellTests; 142 | sourceTree = ""; 143 | }; 144 | 8FFA355B1C1DF6FA0003CBBC /* PSDCellUITests */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 8FFA355C1C1DF6FA0003CBBC /* PSDCellUITests.swift */, 148 | 8FFA355E1C1DF6FA0003CBBC /* Info.plist */, 149 | ); 150 | path = PSDCellUITests; 151 | sourceTree = ""; 152 | }; 153 | /* End PBXGroup section */ 154 | 155 | /* Begin PBXNativeTarget section */ 156 | 8FFA35381C1DF6F90003CBBC /* PSDCell */ = { 157 | isa = PBXNativeTarget; 158 | buildConfigurationList = 8FFA35611C1DF6FA0003CBBC /* Build configuration list for PBXNativeTarget "PSDCell" */; 159 | buildPhases = ( 160 | 8FFA35351C1DF6F90003CBBC /* Sources */, 161 | 8FFA35361C1DF6F90003CBBC /* Frameworks */, 162 | 8FFA35371C1DF6F90003CBBC /* Resources */, 163 | ); 164 | buildRules = ( 165 | ); 166 | dependencies = ( 167 | ); 168 | name = PSDCell; 169 | productName = PSDCell; 170 | productReference = 8FFA35391C1DF6F90003CBBC /* PSDCell.app */; 171 | productType = "com.apple.product-type.application"; 172 | }; 173 | 8FFA354C1C1DF6FA0003CBBC /* PSDCellTests */ = { 174 | isa = PBXNativeTarget; 175 | buildConfigurationList = 8FFA35641C1DF6FA0003CBBC /* Build configuration list for PBXNativeTarget "PSDCellTests" */; 176 | buildPhases = ( 177 | 8FFA35491C1DF6FA0003CBBC /* Sources */, 178 | 8FFA354A1C1DF6FA0003CBBC /* Frameworks */, 179 | 8FFA354B1C1DF6FA0003CBBC /* Resources */, 180 | ); 181 | buildRules = ( 182 | ); 183 | dependencies = ( 184 | 8FFA354F1C1DF6FA0003CBBC /* PBXTargetDependency */, 185 | ); 186 | name = PSDCellTests; 187 | productName = PSDCellTests; 188 | productReference = 8FFA354D1C1DF6FA0003CBBC /* PSDCellTests.xctest */; 189 | productType = "com.apple.product-type.bundle.unit-test"; 190 | }; 191 | 8FFA35571C1DF6FA0003CBBC /* PSDCellUITests */ = { 192 | isa = PBXNativeTarget; 193 | buildConfigurationList = 8FFA35671C1DF6FA0003CBBC /* Build configuration list for PBXNativeTarget "PSDCellUITests" */; 194 | buildPhases = ( 195 | 8FFA35541C1DF6FA0003CBBC /* Sources */, 196 | 8FFA35551C1DF6FA0003CBBC /* Frameworks */, 197 | 8FFA35561C1DF6FA0003CBBC /* Resources */, 198 | ); 199 | buildRules = ( 200 | ); 201 | dependencies = ( 202 | 8FFA355A1C1DF6FA0003CBBC /* PBXTargetDependency */, 203 | ); 204 | name = PSDCellUITests; 205 | productName = PSDCellUITests; 206 | productReference = 8FFA35581C1DF6FA0003CBBC /* PSDCellUITests.xctest */; 207 | productType = "com.apple.product-type.bundle.ui-testing"; 208 | }; 209 | /* End PBXNativeTarget section */ 210 | 211 | /* Begin PBXProject section */ 212 | 8FFA35311C1DF6F90003CBBC /* Project object */ = { 213 | isa = PBXProject; 214 | attributes = { 215 | LastSwiftUpdateCheck = 0720; 216 | LastUpgradeCheck = 1150; 217 | ORGANIZATIONNAME = "Petros Demetrakopoulos"; 218 | TargetAttributes = { 219 | 8FFA35381C1DF6F90003CBBC = { 220 | CreatedOnToolsVersion = 7.2; 221 | }; 222 | 8FFA354C1C1DF6FA0003CBBC = { 223 | CreatedOnToolsVersion = 7.2; 224 | TestTargetID = 8FFA35381C1DF6F90003CBBC; 225 | }; 226 | 8FFA35571C1DF6FA0003CBBC = { 227 | CreatedOnToolsVersion = 7.2; 228 | TestTargetID = 8FFA35381C1DF6F90003CBBC; 229 | }; 230 | }; 231 | }; 232 | buildConfigurationList = 8FFA35341C1DF6F90003CBBC /* Build configuration list for PBXProject "PSDCell" */; 233 | compatibilityVersion = "Xcode 3.2"; 234 | developmentRegion = en; 235 | hasScannedForEncodings = 0; 236 | knownRegions = ( 237 | en, 238 | Base, 239 | ); 240 | mainGroup = 8FFA35301C1DF6F90003CBBC; 241 | productRefGroup = 8FFA353A1C1DF6F90003CBBC /* Products */; 242 | projectDirPath = ""; 243 | projectRoot = ""; 244 | targets = ( 245 | 8FFA35381C1DF6F90003CBBC /* PSDCell */, 246 | 8FFA354C1C1DF6FA0003CBBC /* PSDCellTests */, 247 | 8FFA35571C1DF6FA0003CBBC /* PSDCellUITests */, 248 | ); 249 | }; 250 | /* End PBXProject section */ 251 | 252 | /* Begin PBXResourcesBuildPhase section */ 253 | 8FFA35371C1DF6F90003CBBC /* Resources */ = { 254 | isa = PBXResourcesBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | 8FFA35471C1DF6F90003CBBC /* LaunchScreen.storyboard in Resources */, 258 | 8F9BB58D1C1E3A080032A95D /* back1.png in Resources */, 259 | 8FFA35441C1DF6F90003CBBC /* Assets.xcassets in Resources */, 260 | 8F9BB5931C1E428A0032A95D /* Sea.jpg in Resources */, 261 | 8F9BB5971C1E44F50032A95D /* ballon.png in Resources */, 262 | 8F9BB5991C1E466F0032A95D /* adele.jpg in Resources */, 263 | 8F9BB58E1C1E3A080032A95D /* back2.png in Resources */, 264 | 8F9BB58F1C1E3A080032A95D /* back3.png in Resources */, 265 | 8FFA35421C1DF6F90003CBBC /* Main.storyboard in Resources */, 266 | 8F9BB5951C1E43EA0032A95D /* elvis.jpg in Resources */, 267 | ); 268 | runOnlyForDeploymentPostprocessing = 0; 269 | }; 270 | 8FFA354B1C1DF6FA0003CBBC /* Resources */ = { 271 | isa = PBXResourcesBuildPhase; 272 | buildActionMask = 2147483647; 273 | files = ( 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | }; 277 | 8FFA35561C1DF6FA0003CBBC /* Resources */ = { 278 | isa = PBXResourcesBuildPhase; 279 | buildActionMask = 2147483647; 280 | files = ( 281 | 8F9BB59A1C1E466F0032A95D /* adele.jpg in Resources */, 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | }; 285 | /* End PBXResourcesBuildPhase section */ 286 | 287 | /* Begin PBXSourcesBuildPhase section */ 288 | 8FFA35351C1DF6F90003CBBC /* Sources */ = { 289 | isa = PBXSourcesBuildPhase; 290 | buildActionMask = 2147483647; 291 | files = ( 292 | 8FFA353F1C1DF6F90003CBBC /* ViewController.swift in Sources */, 293 | 8FFA353D1C1DF6F90003CBBC /* AppDelegate.swift in Sources */, 294 | 8FFA356B1C1DF7D50003CBBC /* PSDCell.swift in Sources */, 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | }; 298 | 8FFA35491C1DF6FA0003CBBC /* Sources */ = { 299 | isa = PBXSourcesBuildPhase; 300 | buildActionMask = 2147483647; 301 | files = ( 302 | 8FFA35521C1DF6FA0003CBBC /* PSDCellTests.swift in Sources */, 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | }; 306 | 8FFA35541C1DF6FA0003CBBC /* Sources */ = { 307 | isa = PBXSourcesBuildPhase; 308 | buildActionMask = 2147483647; 309 | files = ( 310 | 8FFA355D1C1DF6FA0003CBBC /* PSDCellUITests.swift in Sources */, 311 | ); 312 | runOnlyForDeploymentPostprocessing = 0; 313 | }; 314 | /* End PBXSourcesBuildPhase section */ 315 | 316 | /* Begin PBXTargetDependency section */ 317 | 8FFA354F1C1DF6FA0003CBBC /* PBXTargetDependency */ = { 318 | isa = PBXTargetDependency; 319 | target = 8FFA35381C1DF6F90003CBBC /* PSDCell */; 320 | targetProxy = 8FFA354E1C1DF6FA0003CBBC /* PBXContainerItemProxy */; 321 | }; 322 | 8FFA355A1C1DF6FA0003CBBC /* PBXTargetDependency */ = { 323 | isa = PBXTargetDependency; 324 | target = 8FFA35381C1DF6F90003CBBC /* PSDCell */; 325 | targetProxy = 8FFA35591C1DF6FA0003CBBC /* PBXContainerItemProxy */; 326 | }; 327 | /* End PBXTargetDependency section */ 328 | 329 | /* Begin PBXVariantGroup section */ 330 | 8FFA35401C1DF6F90003CBBC /* Main.storyboard */ = { 331 | isa = PBXVariantGroup; 332 | children = ( 333 | 8FFA35411C1DF6F90003CBBC /* Base */, 334 | ); 335 | name = Main.storyboard; 336 | sourceTree = ""; 337 | }; 338 | 8FFA35451C1DF6F90003CBBC /* LaunchScreen.storyboard */ = { 339 | isa = PBXVariantGroup; 340 | children = ( 341 | 8FFA35461C1DF6F90003CBBC /* Base */, 342 | ); 343 | name = LaunchScreen.storyboard; 344 | sourceTree = ""; 345 | }; 346 | /* End PBXVariantGroup section */ 347 | 348 | /* Begin XCBuildConfiguration section */ 349 | 8FFA355F1C1DF6FA0003CBBC /* Debug */ = { 350 | isa = XCBuildConfiguration; 351 | buildSettings = { 352 | ALWAYS_SEARCH_USER_PATHS = NO; 353 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 354 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 355 | CLANG_CXX_LIBRARY = "libc++"; 356 | CLANG_ENABLE_MODULES = YES; 357 | CLANG_ENABLE_OBJC_ARC = YES; 358 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 359 | CLANG_WARN_BOOL_CONVERSION = YES; 360 | CLANG_WARN_COMMA = YES; 361 | CLANG_WARN_CONSTANT_CONVERSION = YES; 362 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 363 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 364 | CLANG_WARN_EMPTY_BODY = YES; 365 | CLANG_WARN_ENUM_CONVERSION = YES; 366 | CLANG_WARN_INFINITE_RECURSION = YES; 367 | CLANG_WARN_INT_CONVERSION = YES; 368 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 369 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 370 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 371 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 372 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 373 | CLANG_WARN_STRICT_PROTOTYPES = YES; 374 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 375 | CLANG_WARN_UNREACHABLE_CODE = YES; 376 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 377 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 378 | COPY_PHASE_STRIP = NO; 379 | DEBUG_INFORMATION_FORMAT = dwarf; 380 | ENABLE_STRICT_OBJC_MSGSEND = YES; 381 | ENABLE_TESTABILITY = YES; 382 | GCC_C_LANGUAGE_STANDARD = gnu99; 383 | GCC_DYNAMIC_NO_PIC = NO; 384 | GCC_NO_COMMON_BLOCKS = YES; 385 | GCC_OPTIMIZATION_LEVEL = 0; 386 | GCC_PREPROCESSOR_DEFINITIONS = ( 387 | "DEBUG=1", 388 | "$(inherited)", 389 | ); 390 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 391 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 392 | GCC_WARN_UNDECLARED_SELECTOR = YES; 393 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 394 | GCC_WARN_UNUSED_FUNCTION = YES; 395 | GCC_WARN_UNUSED_VARIABLE = YES; 396 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 397 | MTL_ENABLE_DEBUG_INFO = YES; 398 | ONLY_ACTIVE_ARCH = YES; 399 | SDKROOT = iphoneos; 400 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 401 | }; 402 | name = Debug; 403 | }; 404 | 8FFA35601C1DF6FA0003CBBC /* Release */ = { 405 | isa = XCBuildConfiguration; 406 | buildSettings = { 407 | ALWAYS_SEARCH_USER_PATHS = NO; 408 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 409 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 410 | CLANG_CXX_LIBRARY = "libc++"; 411 | CLANG_ENABLE_MODULES = YES; 412 | CLANG_ENABLE_OBJC_ARC = YES; 413 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 414 | CLANG_WARN_BOOL_CONVERSION = YES; 415 | CLANG_WARN_COMMA = YES; 416 | CLANG_WARN_CONSTANT_CONVERSION = YES; 417 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 418 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 419 | CLANG_WARN_EMPTY_BODY = YES; 420 | CLANG_WARN_ENUM_CONVERSION = YES; 421 | CLANG_WARN_INFINITE_RECURSION = YES; 422 | CLANG_WARN_INT_CONVERSION = YES; 423 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 424 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 425 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 426 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 427 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 428 | CLANG_WARN_STRICT_PROTOTYPES = YES; 429 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 430 | CLANG_WARN_UNREACHABLE_CODE = YES; 431 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 432 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 433 | COPY_PHASE_STRIP = NO; 434 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 435 | ENABLE_NS_ASSERTIONS = NO; 436 | ENABLE_STRICT_OBJC_MSGSEND = YES; 437 | GCC_C_LANGUAGE_STANDARD = gnu99; 438 | GCC_NO_COMMON_BLOCKS = YES; 439 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 440 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 441 | GCC_WARN_UNDECLARED_SELECTOR = YES; 442 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 443 | GCC_WARN_UNUSED_FUNCTION = YES; 444 | GCC_WARN_UNUSED_VARIABLE = YES; 445 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 446 | MTL_ENABLE_DEBUG_INFO = NO; 447 | SDKROOT = iphoneos; 448 | SWIFT_COMPILATION_MODE = wholemodule; 449 | VALIDATE_PRODUCT = YES; 450 | }; 451 | name = Release; 452 | }; 453 | 8FFA35621C1DF6FA0003CBBC /* Debug */ = { 454 | isa = XCBuildConfiguration; 455 | buildSettings = { 456 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 457 | INFOPLIST_FILE = PSDCell/Info.plist; 458 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 459 | PRODUCT_BUNDLE_IDENTIFIER = "com.PSD-App.PSDCell"; 460 | PRODUCT_NAME = "$(TARGET_NAME)"; 461 | SWIFT_VERSION = 4.0; 462 | }; 463 | name = Debug; 464 | }; 465 | 8FFA35631C1DF6FA0003CBBC /* Release */ = { 466 | isa = XCBuildConfiguration; 467 | buildSettings = { 468 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 469 | INFOPLIST_FILE = PSDCell/Info.plist; 470 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 471 | PRODUCT_BUNDLE_IDENTIFIER = "com.PSD-App.PSDCell"; 472 | PRODUCT_NAME = "$(TARGET_NAME)"; 473 | SWIFT_VERSION = 4.0; 474 | }; 475 | name = Release; 476 | }; 477 | 8FFA35651C1DF6FA0003CBBC /* Debug */ = { 478 | isa = XCBuildConfiguration; 479 | buildSettings = { 480 | BUNDLE_LOADER = "$(TEST_HOST)"; 481 | INFOPLIST_FILE = PSDCellTests/Info.plist; 482 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 483 | PRODUCT_BUNDLE_IDENTIFIER = "com.PSD-App.PSDCellTests"; 484 | PRODUCT_NAME = "$(TARGET_NAME)"; 485 | SWIFT_VERSION = 4.0; 486 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PSDCell.app/PSDCell"; 487 | }; 488 | name = Debug; 489 | }; 490 | 8FFA35661C1DF6FA0003CBBC /* Release */ = { 491 | isa = XCBuildConfiguration; 492 | buildSettings = { 493 | BUNDLE_LOADER = "$(TEST_HOST)"; 494 | INFOPLIST_FILE = PSDCellTests/Info.plist; 495 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 496 | PRODUCT_BUNDLE_IDENTIFIER = "com.PSD-App.PSDCellTests"; 497 | PRODUCT_NAME = "$(TARGET_NAME)"; 498 | SWIFT_VERSION = 4.0; 499 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PSDCell.app/PSDCell"; 500 | }; 501 | name = Release; 502 | }; 503 | 8FFA35681C1DF6FA0003CBBC /* Debug */ = { 504 | isa = XCBuildConfiguration; 505 | buildSettings = { 506 | INFOPLIST_FILE = PSDCellUITests/Info.plist; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 508 | PRODUCT_BUNDLE_IDENTIFIER = "com.PSD-App.PSDCellUITests"; 509 | PRODUCT_NAME = "$(TARGET_NAME)"; 510 | SWIFT_VERSION = 4.0; 511 | TEST_TARGET_NAME = PSDCell; 512 | USES_XCTRUNNER = YES; 513 | }; 514 | name = Debug; 515 | }; 516 | 8FFA35691C1DF6FA0003CBBC /* Release */ = { 517 | isa = XCBuildConfiguration; 518 | buildSettings = { 519 | INFOPLIST_FILE = PSDCellUITests/Info.plist; 520 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 521 | PRODUCT_BUNDLE_IDENTIFIER = "com.PSD-App.PSDCellUITests"; 522 | PRODUCT_NAME = "$(TARGET_NAME)"; 523 | SWIFT_VERSION = 4.0; 524 | TEST_TARGET_NAME = PSDCell; 525 | USES_XCTRUNNER = YES; 526 | }; 527 | name = Release; 528 | }; 529 | /* End XCBuildConfiguration section */ 530 | 531 | /* Begin XCConfigurationList section */ 532 | 8FFA35341C1DF6F90003CBBC /* Build configuration list for PBXProject "PSDCell" */ = { 533 | isa = XCConfigurationList; 534 | buildConfigurations = ( 535 | 8FFA355F1C1DF6FA0003CBBC /* Debug */, 536 | 8FFA35601C1DF6FA0003CBBC /* Release */, 537 | ); 538 | defaultConfigurationIsVisible = 0; 539 | defaultConfigurationName = Release; 540 | }; 541 | 8FFA35611C1DF6FA0003CBBC /* Build configuration list for PBXNativeTarget "PSDCell" */ = { 542 | isa = XCConfigurationList; 543 | buildConfigurations = ( 544 | 8FFA35621C1DF6FA0003CBBC /* Debug */, 545 | 8FFA35631C1DF6FA0003CBBC /* Release */, 546 | ); 547 | defaultConfigurationIsVisible = 0; 548 | defaultConfigurationName = Release; 549 | }; 550 | 8FFA35641C1DF6FA0003CBBC /* Build configuration list for PBXNativeTarget "PSDCellTests" */ = { 551 | isa = XCConfigurationList; 552 | buildConfigurations = ( 553 | 8FFA35651C1DF6FA0003CBBC /* Debug */, 554 | 8FFA35661C1DF6FA0003CBBC /* Release */, 555 | ); 556 | defaultConfigurationIsVisible = 0; 557 | defaultConfigurationName = Release; 558 | }; 559 | 8FFA35671C1DF6FA0003CBBC /* Build configuration list for PBXNativeTarget "PSDCellUITests" */ = { 560 | isa = XCConfigurationList; 561 | buildConfigurations = ( 562 | 8FFA35681C1DF6FA0003CBBC /* Debug */, 563 | 8FFA35691C1DF6FA0003CBBC /* Release */, 564 | ); 565 | defaultConfigurationIsVisible = 0; 566 | defaultConfigurationName = Release; 567 | }; 568 | /* End XCConfigurationList section */ 569 | }; 570 | rootObject = 8FFA35311C1DF6F90003CBBC /* Project object */; 571 | } 572 | -------------------------------------------------------------------------------- /PSDCell.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /PSDCell.xcodeproj/xcuserdata/Petros.xcuserdatad/xcschemes/PSDCell.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 42 | 48 | 49 | 50 | 52 | 58 | 59 | 60 | 61 | 62 | 72 | 74 | 80 | 81 | 82 | 83 | 89 | 91 | 97 | 98 | 99 | 100 | 102 | 103 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /PSDCell.xcodeproj/xcuserdata/Petros.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | PSDCell.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 8FFA35381C1DF6F90003CBBC 16 | 17 | primary 18 | 19 | 20 | 8FFA354C1C1DF6FA0003CBBC 21 | 22 | primary 23 | 24 | 25 | 8FFA35571C1DF6FA0003CBBC 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /PSDCell/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // PSDCell 4 | // 5 | // Created by Petros Demetrakopoulos on 13/12/15. 6 | // Copyright © 2015 Petros Demetrakopoulos. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | private func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /PSDCell/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /PSDCell/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /PSDCell/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /PSDCell/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /PSDCell/PSDCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PSDCell.swift 3 | // PSDCell 4 | // 5 | // Created by Petros Demetrakopoulos on 13/12/15. 6 | // Copyright © 2015 Petros Demetrakopoulos. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class PSDCell: UITableViewCell { 12 | let circular = UIImageView(frame: CGRect(x: UIScreen.main.bounds.midX - 50.0, y: 30.0, width: 100.0, height: 100.0)) 13 | let title = UILabel(frame: CGRect(x:0.0,y:140.0,width:UIScreen.main.bounds.width,height:30.0)) 14 | let subtitle = UILabel(frame: CGRect(x:0.0,y:175.0,width:UIScreen.main.bounds.width,height:25.0)) 15 | let background = UIImageView(frame: CGRect(x:0.0,y:0.0,width:UIScreen.main.bounds.width,height:250.0)) 16 | override func awakeFromNib() { 17 | super.awakeFromNib() 18 | // Initialization code 19 | } 20 | 21 | override func setSelected(_ selected: Bool, animated: Bool) { 22 | super.setSelected(selected, animated: animated) 23 | // Configure the view for the selected state 24 | } 25 | 26 | required init(coder aDecoder: NSCoder) { 27 | super.init(coder: aDecoder)! 28 | self.customSetup() 29 | } 30 | 31 | override init(style: UITableViewCellStyle, reuseIdentifier: String?) { 32 | super.init(style: style, reuseIdentifier: reuseIdentifier) 33 | self.customSetup() 34 | } 35 | 36 | func customSetup(){ 37 | title.textAlignment = NSTextAlignment.center 38 | title.font = UIFont(name: "Helvetica Neue", size: 25.0) 39 | subtitle.textAlignment = NSTextAlignment.center 40 | subtitle.font = UIFont(name: "Helvetica", size: 22.0) 41 | circular.layer.cornerRadius = 50.0 42 | circular.clipsToBounds = true 43 | self.backgroundColor = UIColor.red 44 | let blur = UIBlurEffect(style: UIBlurEffectStyle.light) 45 | let effectView = UIVisualEffectView(effect: blur) 46 | effectView.frame = CGRect(x:0.0,y:0.0,width:UIScreen.main.bounds.width,height: 255) 47 | self.addSubview(background) 48 | self.addSubview(effectView) 49 | self.addSubview(circular) 50 | self.addSubview(title) 51 | self.addSubview(subtitle) 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /PSDCell/Sea.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petrosDemetrakopoulos/PSDCell/168ce0ac358a91f954d138d770f38889b7de4123/PSDCell/Sea.jpg -------------------------------------------------------------------------------- /PSDCell/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // PSDCell 4 | // 5 | // Created by Petros Demetrakopoulos on 13/12/15. 6 | // Copyright © 2015 Petros Demetrakopoulos. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UITableViewController{ 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | tableView.register(PSDCell.self, forCellReuseIdentifier: "reuseIdentifier") 16 | // Do any additional setup after loading the view, typically from a nib. 17 | } 18 | 19 | override func didReceiveMemoryWarning() { 20 | super.didReceiveMemoryWarning() 21 | // Dispose of any resources that can be recreated. 22 | } 23 | 24 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 25 | let cell = self.tableView.dequeueReusableCell(withIdentifier:"reuseIdentifier", for: indexPath) as! PSDCell 26 | cell.selectionStyle = UITableViewCellSelectionStyle.none 27 | if indexPath.row == 0{ 28 | cell.background.image = UIImage(named: "back1.png") 29 | cell.title.text = "Adele" 30 | cell.subtitle.text = "singer" 31 | cell.circular.image = UIImage(named: "adele.jpg") 32 | } else if indexPath.row == 1{ 33 | cell.background.image = UIImage(named: "back2.png") 34 | cell.title.text = "Elvis Presley" 35 | cell.subtitle.text = "Pop star" 36 | cell.circular.image = UIImage(named: "elvis.jpg") 37 | } else { 38 | cell.background.image = UIImage(named: "sea.jpg") 39 | cell.circular.image = UIImage(named: "ballon.png") 40 | cell.title.text = "Balloon" 41 | cell.subtitle.text = "Party" 42 | } 43 | 44 | return cell 45 | } 46 | func numberOfSectionsInTableView(tableView: UITableView) -> Int { 47 | // #warning Potentially incomplete method implementation. 48 | // Return the number of sections. 49 | return 1 50 | } 51 | 52 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 53 | return 5 54 | } 55 | 56 | } 57 | 58 | -------------------------------------------------------------------------------- /PSDCell/adele.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petrosDemetrakopoulos/PSDCell/168ce0ac358a91f954d138d770f38889b7de4123/PSDCell/adele.jpg -------------------------------------------------------------------------------- /PSDCell/back1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petrosDemetrakopoulos/PSDCell/168ce0ac358a91f954d138d770f38889b7de4123/PSDCell/back1.png -------------------------------------------------------------------------------- /PSDCell/back2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petrosDemetrakopoulos/PSDCell/168ce0ac358a91f954d138d770f38889b7de4123/PSDCell/back2.png -------------------------------------------------------------------------------- /PSDCell/back3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petrosDemetrakopoulos/PSDCell/168ce0ac358a91f954d138d770f38889b7de4123/PSDCell/back3.png -------------------------------------------------------------------------------- /PSDCell/ballon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petrosDemetrakopoulos/PSDCell/168ce0ac358a91f954d138d770f38889b7de4123/PSDCell/ballon.png -------------------------------------------------------------------------------- /PSDCell/elvis.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/petrosDemetrakopoulos/PSDCell/168ce0ac358a91f954d138d770f38889b7de4123/PSDCell/elvis.jpg -------------------------------------------------------------------------------- /PSDCellTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /PSDCellTests/PSDCellTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PSDCellTests.swift 3 | // PSDCellTests 4 | // 5 | // Created by Petros Demetrakopoulos on 13/12/15. 6 | // Copyright © 2015 Petros Demetrakopoulos. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import PSDCell 11 | 12 | class PSDCellTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | // Use XCTAssert and related functions to verify your tests produce the correct results. 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /PSDCellUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /PSDCellUITests/PSDCellUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PSDCellUITests.swift 3 | // PSDCellUITests 4 | // 5 | // Created by Petros Demetrakopoulos on 13/12/15. 6 | // Copyright © 2015 Petros Demetrakopoulos. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class PSDCellUITests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | 18 | // In UI tests it is usually best to stop immediately when a failure occurs. 19 | continueAfterFailure = false 20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 21 | XCUIApplication().launch() 22 | 23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 24 | } 25 | 26 | override func tearDown() { 27 | // Put teardown code here. This method is called after the invocation of each test method in the class. 28 | super.tearDown() 29 | } 30 | 31 | func testExample() { 32 | // Use recording to get started writing UI tests. 33 | // Use XCTAssert and related functions to verify your tests produce the correct results. 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PSDCell 2 | A custom cell with blured background 3 | 4 | ## Usage 5 | 1. Copy PSDCell.swift in your project 6 |
2.Link the prototype cell of your table view from the storyboard with the PSDCell class. 7 |
3.When you create each cell on your table view class just set a background image, a circular image, a title and a subtitle as shown below. 8 | 2.Link the prototype cell of your table view from the storyboard with the PSDCell class. 9 | 3.When you create each cell on your table view class just set a background image, a circular image, a title and a subtitle as shown below. 10 | ```Swift 11 | override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { 12 | let cell = self.tableView.dequeueReusableCellWithIdentifier("reuseIdentifier", forIndexPath: indexPath) as! PSDCell 13 | 14 | cell.selectionStyle = UITableViewCellSelectionStyle.None 15 | cell.title.text = " Petros Demetrakopoulos" 16 | cell.subtitle.text = "iOS developer" 17 | cell.background.image = UIImage(named: "background.png") 18 | cell.circular.image = UIImage(named: "picture.jpg") 19 | 20 | return cell 21 | } 22 | 23 | ``` 24 | 25 | ## License 26 | The MIT License (MIT) 27 | 28 | Copyright (c) 2015 Petros Demetrakopoulos 29 | 30 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 31 | 32 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 33 | 34 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 35 | 36 | --------------------------------------------------------------------------------