Tag:Design sketch

  • IOS QR code scanning and generation


    IOS QR code scanning and generation preface Recently, because of work needs, I have to do a QR code scanning function, and then I searched the relevant content. The built-in framework avfoundation of ios7 can realize the functions related to QR code scanning. In addition, it can also use third-party libraries: ZBar SDK and zxing […]

  • Sharing documents between win10 computers without network


    Reasons for demand: I’ve done before how two win10 computers can realize file sharing between them without using any third-party software when there is a network. However, after completion, I suddenly thought of a situation, that is, how to realize file transfer between two wiin10 computers if there is no network? Demand objectives: Taking two […]

  • JS implementation countdown


    Many games are used to countdown, such as annual meeting, birthday, date… Nonsense, not much code design sketch: index.html <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>Document</title> <style> body{ background-color: #2a3852; } #box { display: flex; justify-content: center; align-items: center; flex-direction: column; margin-top: 300px; } #box h1 { letter-spacing: 3px; font-weight: […]

  • Convert pictures to ICO format


    Reasons for demand: Today, I want to add an icon to the left of the page title. The effect picture is as follows: But forget how to use it? Demand objectives: Add an icon to the title bar of an HTML page Specific practice: 1. Right click – select opening method – select drawing tool, […]

  • Echart sets the spacing between columns


    Echart sets the spacing between columns 1. Development environment Vue + echarts2. Computer system Windows 10 professional edition3. In the development process of using Vue + eckarts, we always use the histogram. Let me share how to modify the spacing between columns in the histogram, hoping to be helpful to you.4. For official cases, the […]

  • Develop an H5 game from scratch (I) revisit the basic usage of canvas


    The game code corresponding to this series of articles has been open sourceSinuous game。 original intention From the idea of writing a small game to the completion of game development, it took about a week’s spare time. This process has accumulated some experience and penetrated some principles of game development. Here I plan to write […]

  • The date selector is filled by single selection linkage, and the date splicing is carried out by converting it into array form


    1、 RenderingsThe start date is the current day, and the end date can be filled in according to single choice Select this week Select recent March II <div> <RadioGroup v-model=”period” v-on:on-change=”Aperiod”> < radio label = “this week” > < / radio > < radio label = “this month” > < / radio > < radio […]

  • Vue draws echarts word cloud and highcharts word cloud


    The method of drawing word cloud by echarts Ecarts official website The first step is to install the echarts dependency and obtain echarts through NPM,npm install echarts –save, please refer to the official website of echarts for specific operations; The second step is to install the ecarts word cloud plug-in,npm install echarts-wordcloud –save; Step 3: […]

  • How can vant radio buttons be arranged in cells?


    Renderings to be implemented: Implementation process: relying on vant’s own layoutcode: <van-cell> <van-radio-group v-model=”sex” > <van-row> <van-col span=”12″> < van radio name = “m” > male < / Van radio > </van-col> <van-col span=”12″> < van radio name = “F” > female < / Van radio > </van-col> </van-row> </van-radio-group> </van-cell> over

  • [share] IOS development – realize the effect that uilabel displays different colors and some parts are underlined


    design sketch: @interface XSRecommendedPrivilegeViewController () @property (weak, nonatomic) IBOutlet UIButton *payButton; @property (weak, nonatomic) IBOutlet UILabel *termsLabel;// Terms of service @end @implementation XSRecommendedPrivilegeViewController -(void)viewDidLoad { [super viewDidLoad]; self.payButton.layer.masksToBounds = YES; self.payButton.layer.cornerRadius = 7; Nsstring * changestring = @ “listener package terms of service”; Nsstring * termsstring = [nsstring stringwithformat: @ “click next to agree% @, […]

  • Pit and summary in the development of Android widget


    @ catalogue summary Official reference design sketch AndroidManifest.xml Receiver Service Options res/xml/ widget_desktop_options.xml Common parameters Size updatePeriodMillis initialLayout Using App Widgets with Collections Official reference AppWidgetProvider RemoteViewsService RemoteViewsFactory DesktopActivity summary Official reference Build an App Widget design sketch Put a rendering. This is the desktop app folder I play AndroidManifest.xml Receiver Remember not to make […]