background preloader

RGB to Color Name Mapping(Triplet and Hex)

The Exciter - Touches and UIScrollView inside a UITableView Sunday December 28, 2008 UPDATE: please don’t don’t do it like this, it was only needed on iPhoneOS 2.×. A lot have changed in iOS since then and you can now do it properly "Trafikanten" for the iPhone is the iPhone incarnation of the betabrite-style signs hanging around Oslo, providing travellers with real-time departure information on busses, trams and subways. A betabrite sign is basically a set of LED lamps that turn on and off in sequences, usually to portray text scrolling across the screen. The thing is, a UITableView takes completely control of the responder chain (and therefore touches) so that it can try and figure out if the user intents to scroll the scrollview, as described in the documentation overview for the UIScrollView class. Please observe this artist rendition of the view hierarchy: The innermost UIScrollView holds the departure times and it’s the view we want to be able to move horizontally. So that takes care of that right?

40 Useful Online Generators For Web Designers - Noupe Design Blog Oct 11 2010 Generators can be a great way to save time in your web design projects. High-quality generators can create graphics or code or even layouts in a matter of seconds or minutes, things that might take an hour or more if done by hand. Color Schemes A good color scheme is the cornerstone of a good website design. Color Scheme Designer 3Color Scheme Designer 3 has a really fantastic user interface that’s both attractive and easy to use. ColorSchemer Online V2ColorSchemer lets you create color palettes around RGB or HEX values, or using a color selector tool. KulerAdobe’s Kuler is one of the best color scheme tools available, with multiple options for both creating and finding color schemes. ColourLoversColourLovers offers more than just color and pattern generators; it’s an entire community based around a love of color and good design. Color Palette GeneratorThis generator creates a color palette based on an image. Layouts There are CSS generators for almost everything. CSS3 Please!

FavIcon from Pics -- free favicon.ico for your website (animated, static and marquee icons) Favicon Validator is a free online service that can be used to validate favicon files, link tags and related items on web pages. If you'd like to double check the favicon on your web page or if you're having trouble viewing it, enter your web page address and click "Check" Features: Checks if there's a favicon (favicon.ico or icon specified in a <link ...> tag). Makes sure that the favicon files are readable icons or image files. Validates the content of <link ...> tags, if available. Previews the favicons.

ios - Core Data: NSPredicate for many-to-many relationship. ("to-many key not allowed here") Beyond Pink and Blue: A Look at Gender Colors It goes beyond culture. There is science behind the gender-relationships when it comes to colors. A study by John Hallock compares the color preferences among various demographics and takes into account information collected from 22 countries. Our friends at KissMetrics put together this informative infographic that tears down the gender barriers to reveal what really goes on in visualizations. Click any portion to enlarge. Colors by Gender The Color Purple - The most notable gender difference can be seen in the color purple. Blue Reigns Supreme – Both males and females like the color blue, which receives favor with 35% of female respondents and more than half of the male respondents. A Closer Look In 2007, Doctor Anya Hurlbert and Yazhu Ling created an experiment to explore how men and women differ in their perceptions of color. Results of the Experiment The experiment showed that men and women both preferred blue out of the sets of colors. Color Naming: Men Keep It Simple

Programming The iPhone For Accessibility By The Visually Impaired Per Busch, a blind iPhone user from Germany, has been on a crusade to raise developer awareness about VoiceOver, a new-in-3.0 accessibility enhancement. Per’s is a noble quest, so we’ll do our part here: VoiceOver Over View VoiceOver, says Apple, “describes an application’s user interface and helps users navigate through the application’s views and controls, using speech and sound.” Apple offers a concise document that describes how accessibility is delivered with iPhone 3.0. VoiceOver literally describes what’s on-screen in spoken word. You can label your UI from an inspector panel in Interface Builder. Supporting this level of accessibility isn’t hard. Standard UIKit controls/views support accessibility by default. Limitations, And A Wish-List For Apple Per shared an email conversation with Daniel Ashworth, CEO & Chief Architect of Quokka Studios about the limitations of the VoiceOver. The Business Case For Accessibility

Color Contrast Calculator This calculator will determine whether two colors you are thinking of using on your slides have enough contrast to be seen clearly by the audience. The calculations are based on international standards developed by the World Wide Web Consortium (W3C) detailed here. There are two tests, a color brightness test and a color difference test. Both tests should be passed in order to ensure that the colors you are using on your slides will be easily seen. How To Use the Calculator In the form below, enter the background color red, green and blue attributes and the text/foreground color red, green and blue attributes. The text/foreground color could also be a color you are considering for lines or shapes on the slide. Suggestions for Improving the Color Brightness Contrast The largest contributor to a difference in color brightness between two colors is the difference in the value for the Green attribute. Suggestions for Improving the Color Difference

iphone应用程序开发指南(读书笔记 2 ) - 今年我们二十五六 - 51CTO技术博客 创建一个新的视图对象时,需要为其分配内存,并向该对象发送一个initWithFrame:消息,以对其进行初始化。举例来说,如果您要创建一个新的UIView 类的实例作为其它视图的容器,则可以使用下面的代码: 在iPhone 程序中,有两个地方最常用于创建视图和子视图, 它们是应用程序委托对象的applicationDidFinishLaunching:方法和视图控制器的loadView 方法。 调用父视图的addSubview:方法来添加视图,该方法将一个视图添加到子视图列表的最后。 调用父视图的insertSubview:...方法可以在父视图的子视图列表中间插入视图。 调用父视图的bringSubviewToFront: 、sendSubviewToBack: 、或 exchangeSubviewAtIndex:withSubviewAtIndex:方法可以对父视图的子视图进行重新排序。 调用子视图(而不是父视图)的removeFromSuperview 方法可以将子视图从父视图中移除。 创建一个带有视图的窗口 - (void)applicationDidFinishLaunching:(UIApplication *)application { // Create the window object and assign it to the // window instance variable of the application delegate. window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; window.backgroundColor = [UIColor whiteColor]; // Create a simple red square CGRect redFrame = CGRectMake(10, 10, 100, 100); UIView *redView = [[UIView alloc] initWithFrame:redFrame]; redView.backgroundColor = [UIColor redColor]; // Create a simple blue square // Add the square views to the window

True Colors: What Your Brand Colors Say About Your Business [Infographic] The most prominent brands in the world are defined by their colors. Think of McDonald’s golden arches, the name Jet Blue, and UPS’ slogan, “What can Brown do for you?” These companies, and many others, strategically use colors in their logo, website, and product to appeal to customers. Research has found that different colors provoke very different reactions in people. Embed the True Colors: What Your Brand Colors Say About Your Business Infographic on your web site:

zlib Home Site NSSortDescriptor - 俺是一个瓜娃!!! - ItEye技术网站 Specifying Sorts Using NSSortDescriptor Let’s assume, as an example, that we have an array (an instance of NSArray) containing instances of a custom class, Employee (that meets the requirements set out in “Requirements of Collection Objects”). The Employee class has attributes for an employee’s first and last name (instances of NSString), date of hire (an instance of NSDate), and age (an instance of NSNumber). 1:Sorting the array by the age key ageDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"age" ascending:YES] autorelease]; sortDescriptors = [NSArray arrayWithObject:ageDescriptor]; sortedArray = [employeesArray sortedArrayUsingDescriptors:sortDescriptors]; ageDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"age" ascending:YES] autorelease]; sortDescriptors = [NSArray arrayWithObject:ageDescriptor]; sortedArray = [employeesArray sortedArrayUsingDescriptors:sortDescriptors]; 2:Sorting the array by the age and date of hire key Specifying Custom Comparisons 写道

Tenius iPhone Icon Set | Icons Depot The Tenius iPhone Icon Set is an elegant and attractive set of icons designed for the iPhone. Price: FreePackage: Dozens of icons suitable for use on the iPhone and possibly as web icons.License: Free, no specific terms provided (iPhone use). 把Iphone程序连接真机调试--中国移动开发者社区 对于真机调试,首先要在苹果网站上注册APP ID,以及购买iPhone Develop Program(iDP) 开发者授权,99美元。然后要创建证书请求CSR,创建步骤如下: 设置OCSP和CRL为关闭状态。 Mac OS 中,打开应用程序,找到 钥匙串访问(Keychain Access)工具打开主菜单 - 证书助理(Certificate Assistant)-从证书代理请求证书(Request a Certificate From a Certificate Authority)输入iDP注册时的email,用户名自定义,选择“存储到磁盘”,选择‘Let me specify key pair information’。 选择保存路径,证书请求创建成功。 1.接下来就可以登录iDP Portal提交证书请求了,到这个页面 点Development,‘Request Certificate’,然后点Browser,添加刚才生成的证书,点submit。 点击Approve,一分钟后会生成一个.cer文件。 下载Download,双击它。 单击“好”,就可以把certificate加入到keychain里面了。 2. 打开XCODE,在window菜单下,点击Organizer,出现这个页面(前提是要连上真机哦) identifier那一行字符就是device id了,复制它。 点击“Add Devices” 给device name取个自己的名字,把之前复制的字符粘贴到Device ID那,点下面的submit就可以了 3.

Related: