CN108509196A - A kind of iOS color managements strategy - Google Patents

A kind of iOS color managements strategy Download PDF

Info

Publication number
CN108509196A
CN108509196A CN201810185015.8A CN201810185015A CN108509196A CN 108509196 A CN108509196 A CN 108509196A CN 201810185015 A CN201810185015 A CN 201810185015A CN 108509196 A CN108509196 A CN 108509196A
Authority
CN
China
Prior art keywords
color
read
plist
value
app
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810185015.8A
Other languages
Chinese (zh)
Inventor
邱扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kuwo Technology Co Ltd
Original Assignee
Beijing Kuwo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kuwo Technology Co Ltd filed Critical Beijing Kuwo Technology Co Ltd
Priority to CN201810185015.8A priority Critical patent/CN108509196A/en
Publication of CN108509196A publication Critical patent/CN108509196A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The present invention relates to a kind of iOS color managements strategies, include the following steps:Carry out pre- data configuration, local attribute list file plist is written into color parameter, start app, into color center, the colouring information in plist is read in into color center, generates the relevant key-value pair of color, start loading page, it obtains the page and needs color configuration, read the color value in color center, use the color value read.The present invention, color parameter is stored using local attribute list file plist, app calls color center to obtain the information that plist is stored, generate the relevant key-value pair of color, then when UI or app is presented in loading page, color value is obtained from color center, and color management is convenient, consistency is good, the debugging convenient for color and calling.

Description

A kind of iOS color managements strategy
Technical field
The present invention relates to UI and app color management technical fields, specifically a kind of iOS color managements strategy.
Background technology
In existing UI design or app development processes, following some problems occasionally have generation, but influence very much work progress and Efficiency:
Designer is arranged to your color value in Interface Builder and code setting is shown with prototype with simulator Color it is inconsistent, or even naked eyes see completely out.
Color is set for a common control, it is XXXXXX to be provided with color.Take the survey of color tool is also normal XXXXXX, but after simulator/prototype behaves, color changes colour, with taking color tool to survey, color becomes YYYYYY.
When I with color the Eyedropper tool Photoshop select color and rgb value, after being arranged in Xcode Less than identical color.
After prototype or simulator sectional drawing, it is arranged in the value and Interface Builder that are obtained after taking color with suction pipe Color value is different.
Anywhere apple thinks identical rgb value and should all show identical.Apply the combination of a RGB not in fact Will not always there be identical color in same equipment, which color configuration this uses depending on you(color profile).
Needing to know is, color profile be show color in a color space numerical model (color space, Colour gamut(color space)Be show a mode of color, such as:RGB, CMYK, HSV, etc.), some color schemes (color profile)It is " equipment is related ", some color schemes(color profile)It is " equipment is unrelated ".This meaning Taste same color can show identical color in different equipment (" equipment is unrelated "), and some of them will be according to equipment The characteristics of change color (" equipment related ").
Equally it is interesting that when your sectional drawing, not only the RGB values of each pixel are obtained for storage, but also related In the complementary information for the equipment being intercepted.In this way, apple can make color different by calculating different RGB combinations It is appeared the same as in equipment, the characteristic of these colors and equipment and limitation is made to match in optimal manner.
RGB color schemes in Xcode(color profile)There are Adobe RGB, Apple RGB, Device RGB(Equipment RGB)、Generic RGB(General RGB)、Wide Gamut RGB(Wide area RGB).Check entire color scheme List can be checked from the Colour selection tool of the Interface Builder of Xcode.
Therefore, when you have selected RGB values to combine, and have changed color scheme to be used, you will obtain phase Same color, but can obtain different rgb values, this main problem for keeping developer very irritated when being using color.Example Such as, general RGB (10,80,105) and equipment RGB (0,99,124) are identical colors, but have different RGB values.This It is exactly why may finally have different colors, even if you use you to take the accurate RGB of color to combine from other places (Photoshop suction pipes, digital colour meter(Digital Color Meter)Deng).
Invention content
In view of the deficiencies in the prior art, the purpose of the present invention is to provide a kind of iOS color managements strategies, use Local attribute list file plist stores color parameter, and app calls color center to obtain the information of plist storages, generates color Relevant key-value pair, then when UI or app is presented in loading page, color value is obtained from color center, and color management is convenient, and one Cause property is good, the debugging convenient for color and calling.
To achieve the above objectives, the technical solution adopted by the present invention is that:
A kind of iOS color managements strategy, which is characterized in that include the following steps:
Pre- data configuration is carried out,
Local attribute list file plist is written into color parameter,
Start app, into color center,
Colouring information in plist is read in into color center,
The relevant key-value pair of color is generated,
Start loading page, obtain the page and need color configuration,
The color value in color center is read, the color value read is used.
Based on the above technical solution, the pre- data configuration of progress includes:
At least one demand scheme is designed,
Each demand scheme is corresponding to generate at least a set of configuration information,
Every suit configuration information at least configures a set of Color scheme, and is stored in local,
According to the demand of the interfaces app UI, color parameter is configured,
Local attribute list file plist is written into color parameter.
Based on the above technical solution, the demand of the interfaces app UI includes:
Interface dimensions, including:Equipment, resolution ratio, status bar height, navigation bar height, tab bar height,
Icon size, including:Equipment, App Store, program application, main screen, spotlight search, tab bar, toolbar And navigation bar,
Font, including:English font, Chinese font, Mac fonts, Win fonts, all fonts even numbers font size,
Color value provides color value by tri- colors of RGB.
Based on the above technical solution, after starting app, local pre-set color key-value pair is first set, then further according to It is currently configured and reads plist, the colouring information in plist is finally read in into color center.
Based on the above technical solution, the color value such as failure in color center are read, it tries read and preset face Color value.
IOS color managements strategy of the present invention stores color parameter, app using local attribute list file plist Call color center obtain plist storage information, generate the relevant key-value pair of color, then loading page present UI or When app, color value is obtained from color center, and color management is convenient, and consistency is good, the debugging convenient for color and calling.
Description of the drawings
The present invention has following attached drawing:
The flow chart of Fig. 1 present invention.
Specific implementation mode
Below in conjunction with attached drawing, invention is further described in detail.
As shown in Figure 1, iOS color managements strategy of the present invention, includes the following steps:
Pre- data configuration is carried out,
Local attribute list file plist is written into color parameter,
Start app, into color center,
Colouring information in plist is read in into color center,
The relevant key-value pair of color is generated,
Start loading page, obtain the page and need color configuration,
The color value in color center is read, the color value read is used.
Based on the above technical solution, the pre- data configuration of progress includes:
At least one demand scheme is designed,
Each demand scheme is corresponding to generate at least a set of configuration information,
Every suit configuration information at least configures a set of Color scheme, and is stored in local,
According to the demand of the interfaces app UI, color parameter is configured,
Local attribute list file plist is written into color parameter.
Based on the above technical solution, the demand of the interfaces app UI includes:
Interface dimensions, including:Equipment, resolution ratio, status bar height, navigation bar height, tab bar height,
Icon size, including:Equipment, App Store, program application, main screen, spotlight search, tab bar, toolbar And navigation bar,
Font, including:English font, Chinese font, Mac fonts, Win fonts, all fonts even numbers font size,
Color value provides color value by tri- colors of RGB.
Based on the above technical solution, after starting app, local pre-set color key-value pair is first set, then further according to It is currently configured and reads plist, the colouring information in plist is finally read in into color center.
Based on the above technical solution, the color value such as failure in color center are read, it tries read and preset face Color value.
The content not being described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.

Claims (5)

1. a kind of iOS color managements strategy, which is characterized in that include the following steps:
Pre- data configuration is carried out,
Local attribute list file plist is written into color parameter,
Start app, into color center,
Colouring information in plist is read in into color center,
The relevant key-value pair of color is generated,
Start loading page, obtain the page and need color configuration,
The color value in color center is read, the color value read is used.
2. iOS color managements strategy as described in claim 1, it is characterised in that:It is described to carry out pre- data configuration and include:
At least one demand scheme is designed,
Each demand scheme is corresponding to generate at least a set of configuration information,
Every suit configuration information at least configures a set of Color scheme, and is stored in local,
According to the demand of the interfaces app UI, color parameter is configured,
Local attribute list file plist is written into color parameter.
3. iOS color managements strategy as claimed in claim 2, it is characterised in that:The demand of the interfaces app UI includes:
Interface dimensions, including:Equipment, resolution ratio, status bar height, navigation bar height, tab bar height,
Icon size, including:Equipment, App Store, program application, main screen, spotlight search, tab bar, toolbar And navigation bar,
Font, including:English font, Chinese font, Mac fonts, Win fonts, all fonts even numbers font size,
Color value provides color value by tri- colors of RGB.
4. iOS color managements strategy as described in claim 1, it is characterised in that:After starting app, the local default face of first setting Colouring information in plist is finally read in color center by color key-value pair then further according to reading plist is currently configured.
5. iOS color managements strategy as described in claim 1, it is characterised in that:The color value in color center is read as lost It loses, it tries read pre-set color value.
CN201810185015.8A 2018-03-06 2018-03-06 A kind of iOS color managements strategy Pending CN108509196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810185015.8A CN108509196A (en) 2018-03-06 2018-03-06 A kind of iOS color managements strategy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810185015.8A CN108509196A (en) 2018-03-06 2018-03-06 A kind of iOS color managements strategy

Publications (1)

Publication Number Publication Date
CN108509196A true CN108509196A (en) 2018-09-07

Family

ID=63376206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810185015.8A Pending CN108509196A (en) 2018-03-06 2018-03-06 A kind of iOS color managements strategy

Country Status (1)

Country Link
CN (1) CN108509196A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109254923A (en) * 2018-09-19 2019-01-22 北京酷我科技有限公司 A method of it is debugged using interior UI

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461614A (en) * 2014-11-14 2015-03-25 北京搜狗科技发展有限公司 Method for processing theme resource and electronic device
CN104516738A (en) * 2014-12-15 2015-04-15 北京金和软件股份有限公司 Integrated implementing method for development and release of APP
CN104978183A (en) * 2015-01-22 2015-10-14 腾讯科技(深圳)有限公司 Icon construction method, and terminal equipment
CN105700925A (en) * 2016-01-13 2016-06-22 深圳市华讯方舟软件信息科技有限公司 APP interface implementation method and apparatus
JP2016125904A (en) * 2014-12-26 2016-07-11 脇 リギオ Comprehensive color system enabling visual color digitization and visual color verification of color symbol
CN107463366A (en) * 2017-06-16 2017-12-12 兴业数字金融服务(上海)股份有限公司 A kind of interface mobilism method based on mobile App

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461614A (en) * 2014-11-14 2015-03-25 北京搜狗科技发展有限公司 Method for processing theme resource and electronic device
CN104516738A (en) * 2014-12-15 2015-04-15 北京金和软件股份有限公司 Integrated implementing method for development and release of APP
JP2016125904A (en) * 2014-12-26 2016-07-11 脇 リギオ Comprehensive color system enabling visual color digitization and visual color verification of color symbol
CN104978183A (en) * 2015-01-22 2015-10-14 腾讯科技(深圳)有限公司 Icon construction method, and terminal equipment
CN105700925A (en) * 2016-01-13 2016-06-22 深圳市华讯方舟软件信息科技有限公司 APP interface implementation method and apparatus
CN107463366A (en) * 2017-06-16 2017-12-12 兴业数字金融服务(上海)股份有限公司 A kind of interface mobilism method based on mobile App

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JASMINE_SUNNY: "iOS和Android的app界面设计规范", 《HTTPS://WWW.JIANSHU.COM/P/67AB63723E54》 *
VBIRDBEST: "一步一步实现iOS主题皮肤", 《HTTPS://WWW.JB51.NET/ARTICLE/93872.HTM》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109254923A (en) * 2018-09-19 2019-01-22 北京酷我科技有限公司 A method of it is debugged using interior UI

Similar Documents

Publication Publication Date Title
CN105069118B (en) A kind of application scenarios management method and system based on GIS configurations
CN105282321A (en) Adaption method of application software user interface and display device
CN103927386B (en) Navigation icon generation method and device
US8421816B1 (en) Selection of colors
CN102419955B (en) The display control method of OLED and equipment, terminal device
CN110287472A (en) Report configuration method, system, equipment and computer readable storage medium
CN108415703A (en) A kind of quick interface arrangement method, device, electronic equipment and storage medium
CN109543125A (en) The method for drafting and device of network element in power dispatch data network
CN106126140B (en) A kind of method, apparatus and electronic equipment of rendering type
CN110502205A (en) Picture showing edge processing method, device, electronic equipment and readable storage medium storing program for executing
CN105138355A (en) Method and device for inserting elements in interface of application program and electronic equipment
CN105227873A (en) A kind of method of testing of on-chip study data and device
CN108509196A (en) A kind of iOS color managements strategy
CN105373373B (en) Method and device for quickly generating icon
CN104765266A (en) Simulation clock display method and device and LED display control card
CN106782347A (en) Correct the method and device of LED backlight display white point
CN109165362A (en) Equity penetrates the mask method and device of enterprise attributes in figure
CN109164999B (en) Form self-adaptive display method, device, equipment and readable storage medium
CN107016976A (en) Display control method and device and display screen system
CN106445501A (en) Display method of notification bar, and terminal
CN101193229B (en) A method and system for skin change of TV function interface
CN102902534B (en) A kind of transparent OSD software implementation method
CN114022581A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN107818548A (en) A kind of image processing method, device, equipment and computer-readable medium
CN109582427A (en) A kind of wearable device TFT screen screen display method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180907