{"id":13743054,"url":"https://github.com/vicpenap/PrettyKit","last_synced_at":"2025-05-09T00:32:35.833Z","repository":{"id":2979512,"uuid":"3995231","full_name":"vicpenap/PrettyKit","owner":"vicpenap","description":"PrettyKit for iOS is a small set of new widgets and UIKit subclasses that gives you a deeper UIKit customization. You will be able to change their background color, add gradients, shadows, etc. ","archived":false,"fork":false,"pushed_at":"2012-11-29T19:18:51.000Z","size":1011,"stargazers_count":1217,"open_issues_count":19,"forks_count":153,"subscribers_count":66,"default_branch":"master","last_synced_at":"2025-04-12T11:55:29.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://vicpenap.github.com/PrettyKit","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vicpenap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-11T15:54:49.000Z","updated_at":"2025-03-08T17:27:26.000Z","dependencies_parsed_at":"2022-09-07T08:21:22.746Z","dependency_job_id":null,"html_url":"https://github.com/vicpenap/PrettyKit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicpenap%2FPrettyKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicpenap%2FPrettyKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicpenap%2FPrettyKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicpenap%2FPrettyKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicpenap","download_url":"https://codeload.github.com/vicpenap/PrettyKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171163,"owners_count":21865275,"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":[],"created_at":"2024-08-03T05:00:39.419Z","updated_at":"2025-05-09T00:32:35.516Z","avatar_url":"https://github.com/vicpenap.png","language":"Objective-C","readme":"# PrettyKit 0.2.0\n\n`PrettyKit` is a small set of new widgets and UIKit subclasses that gives you a deeper UIKit customization. You will be able to change their background color, add gradients, shadows, etc.\n\nAt the time of writing these docs, there are subclasses for `UITableViewCell`, `UINavigationBar` and `UITabBar`, and several custom cells.\n\nHere are some examples of what you can achieve:\n\n![](https://github.com/vicpenap/PrettyKit/raw/master/Screenshots/grouped_table.png)\n\n![](https://github.com/vicpenap/PrettyKit/raw/master/Screenshots/plain_table.png)\n\n## Documentation\n\nFull documentation can be found here: http://vicpenap.github.com/PrettyKit\n\n## Using it\n\nFirst:\n\n- Copy all files under the `PrettyKit` folder. \n- `#import \"PrettyKit.h\"` where you need it.\n\nThen, just change all your references to UI classes to Pretty classes, and you're done.\n\nYou'll find further information on how to use the classes in the docs: http://vicpenap.github.com/PrettyKit\n\n## Customization\n\nAll Pretty objects' properties have default values, but you can freely change them.\n\n#### Pretty Cell\n\n##### Grouped tables\n\nYou can change the cell's appearance as follows:\n\n- cell's shadow (border will be disabled when the shadow is enabled).\n- cell's background color or gradient.\n- cell's border color (border will be disabled when the shadow is enabled).\n- cell's corner radius.\n- cell's separator.\n- cell's selection gradient.\n\n##### Plain tables\n\nYou can change the cell's appearance as follows:\n\n- cell's background color or gradient.\n- cell's separator.\n- cell's selection gradient.\n\n#### Pretty Navigation Bar\n\n You can change the navigation bar appearance as follows:\n \n - shadow opacity\n - gradient start color\n - gradient end color\n - top line volor\n - bottom line color\n - corner radius\n\n\n#### Pretty Tab Bar\n\n You can change the tab bar appearance as follows:\n \n - gradient start color\n - gradient end color\n - separator line volor\n\n## Performance\n\nEverything is drawn using Core Graphics, so you can expect a nice performance. Particular attention has been paid to non opaque areas, trying to reduce them as much as possible.\n\n![](https://github.com/vicpenap/PrettyKit/raw/master/Screenshots/blended_layers.png)\n\n## Current status\n\nThis framework is currently under active development. It is compatible with iOS 4.0 or higher.\n\n## F.A.Q.\n\n**Q. How can I use PrettyNavigationBar?**\n\nA. There are two possibilities:\n\n- Interface Builder\n\nIf you're building your interface with Interface Builder, select the navigationBar, go to the Identity inspector and change the class to `PrettyNavigationBar`.\n\n- Programmatically\n\nIf you're creating the NavigationController programmatically, create a subclass of `UINavigationController`, override `initWithRootViewController` (or the constructors you want), and add this line:\n\t\t\n\t[self setValue:[[[PrettyNavigationBar alloc] init] autorelease] forKeyPath:@\"navigationBar\"];\n\nTake into account that this approach is a bit hackish, so it might be a reason for Apple to reject your app. That shouldn't happen, though.\n\nAlso take a look at [this stack overflow thread](http://stackoverflow.com/questions/1869331/set-programmatically-a-custom-subclass-of-uinavigationbar-in-uinavigationcontrol), where other approaches are shown.\n\n**Q. I'm stuck with this error: [UINavigationBar setTopLineColor:]: unrecognized selector sent to instance 0x6c5dd50**\n\nA. Make sure the navigation bar is an instance of PrettyNavigationBar. Take a look at the question above.\n\n**Q. Is there a way to use the same PrettyNavigationBar customization in the entire app?**\n\nA. There is, indeed. You can either create a subclass or a category on PrettyNavigationBar, and override the properties you want to change. \n\nFor example, if you want to have a red navigationBar, you can create a `RedNavigationBar` subclass of `PrettyNavigationBar`, and override the properties `topLineColor`, `gradientStartColor`, `gradientEndColor`, `bottomLineColor` and `tintColor`. Then, wherever you want to use the navigation bar, add an `#import \"RedNavigationBar.h\"` at the top of the code.\n\n\n## Contribution\n\nPlease, please contribute with this project! Fork it, improve it and make me a pull request.\n\n## Changelog\n\n- 2012/08/01: v0.2.0\n    - Bug fixing (memory issues, cell drawing, naming colision with new Xcode (DP3))\n    - New UITableView category to add a shortcut to drop the top and bottom shadow in plain tables \n    - PrettyNavigationBar can now have rounded corners\n    - New widget PrettyToolbar (replacing UIToolbar)\n- 2012/04/12: Initial release (v0.1.0)\n","funding_links":[],"categories":["Objective-C  Stars 1000以内排名整理","Objective-C","etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicpenap%2FPrettyKit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicpenap%2FPrettyKit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicpenap%2FPrettyKit/lists"}