{"id":15038624,"url":"https://github.com/lele8446/cjimageview","last_synced_at":"2026-04-02T02:47:03.846Z","repository":{"id":56904696,"uuid":"49506554","full_name":"lele8446/CJImageView","owner":"lele8446","description":"A custom UIImageView that supports contentMode attribute expansion.","archived":false,"fork":false,"pushed_at":"2021-09-18T09:59:39.000Z","size":2474,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T15:16:41.718Z","etag":null,"topics":["contentmode","imageview","ios","objective-c","swift","uikit"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lele8446.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-12T14:48:41.000Z","updated_at":"2021-09-18T09:59:41.000Z","dependencies_parsed_at":"2022-08-20T19:20:27.722Z","dependency_job_id":null,"html_url":"https://github.com/lele8446/CJImageView","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lele8446%2FCJImageView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lele8446%2FCJImageView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lele8446%2FCJImageView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lele8446%2FCJImageView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lele8446","download_url":"https://codeload.github.com/lele8446/CJImageView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428434,"owners_count":20289317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contentmode","imageview","ios","objective-c","swift","uikit"],"created_at":"2024-09-24T20:39:18.547Z","updated_at":"2025-12-28T15:26:55.639Z","avatar_url":"https://github.com/lele8446.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CJImageView\nA custom UIImageView that supports contentMode attribute expansion.  \n\nIf image' size larger than CJImageView' size,  contents scaled to fill with fixed aspect and adjust position,  some portion of content may be clipped.  Otherwise just adjust the position.\n\n![CJImageView](https://lele8446infoq.oss-cn-shenzhen.aliyuncs.com/CJImageView/CJImageView01.jpg)\n\nNote that **self.image** or **[self image]** always return nil. Use **[self cjImage]、self.cjImage()** instead.\n\n### Installation\n\nTo integrate CJImageView into your Xcode project using CocoaPods, specify it in your Podfile:\n\n```sh\n// Objective-C\npod 'CJImageView', '1.0.0'\n\n// Swift\npod 'CJImageViewSwift', '1.0.4'\n```\n\n\n\n### Usage\n\n* Objective-C\n\n  ```objective-c\n  #import \u003cCJImageView.h\u003e\n  \n  self.imageView.image = [UIImage imageNamed:@\"xxx\"];\n  self.imageView.cjContentMode = CJContentModeScaleAspectTop;\n  ```\n\n* Swift\n\n  ```swift\n  import CJImageView\n  \n  self.imageView.image = UIImage.init(named: \"common_ic_result_win\")\n  self.imageView.cjContentMode = .scaleAspectTop\n  ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flele8446%2Fcjimageview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flele8446%2Fcjimageview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flele8446%2Fcjimageview/lists"}