Recently in the modification of an old project, there are many xib files, need to fit the iphone X, but do not want to rewrite the page with code, share a small method, is a stupid way,At the bottom of the iphone x, the iphone x has a 34px operating area on the bottom, while the other models are not, as follows:1.2.3. Double-click the arrow to enter the following interface:Then, it's ready!The above navigation adaptation, at present I have not found h
Recently, you need to use a tab to make a demo.the size of the label is based on the text above to fit the size, you need to rely on the data returned by the active line. Not joinedNsarray *arr = @[@ "ignorance", @ "changeable", @ "Shi Naian", @ "Alas", @ "Simon blowing Snow", @ "Oh Da", @ "look at", @ "hole-up", @ "a beast Sniper", @ "Acacia flower", @ "big event", @ "not sincere disturb", @ "Ah hehe"] ; CGFloat w = 0;//The width of the previous b
Fit layout, child elements will automatically fill the entire parent container (invalid for element set width), and if there are multiple child elements in the container component, only the first child element will be displayed.
Second, application examples
Copy Code code as follows:
Ext.onready (function () {
New Ext.panel ({
RenderTo:Ext.getBody (),
Title: "Container Components",
Layout: "Fit
Recently, using spring Cloud to develop a micro-service, the following exception occurred during the test a service call B service:
Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Can not deserialize value of type java.util.Date from String "2018-04-04 14:48:30": not a valid representation (error: Failed to parse Date value '2018-04-04 14:48:30': Can not parse date "2018-04-04 14:48:30": while it seems to
When you print a document in Word 2010, when you use a printer that does not support the type of paper that is specified in Word Page setup, you can set up a paper that automatically uses A4 or 8.5*11 size, as described in the following steps:
Step 1th, open the Word 2010 document window, click the file → options command, and so on, as shown in Figure 2011122003.
Figure 2011122003 Click the Options command
Step 2nd, open the Word Options dialog box and switch to the Advanced tab. In the pri
When a user prints a Word document using Word2013, if the printer you are using does not support the type of paper specified in the current Word document Page Setup, you can automatically use A4 sized paper by setting the zoom content, as described in the following steps:
Step 1th, open the Word2013 document window, click the file → options command, and so on, as shown in Figure 2013041907.
Figure 2013041907 Click the Options command
Step 2nd, open the Word Options dialog box and switch to
code requirements, the preview of the incredible phenomenon,
6 in Netscape Navigator, some bookmarks (anchor) do not work, some seem to disappear?
Netscape Navigator's bookmarks are case sensitive. In Navigator, bookmarks in multiple nested tables are lost, and bookmarks are placed outside the table.
7 Dreamweaver document window is covered with a variety of panels, in order to edit the document, had to be clawed out a gap, too tired, how is good?
Android adaptation, before the work is to 1280*720 interface to adapt to work, but now the resolution of the mobile phone into the 2K era, so now art are 1920*1080 to do interface design. Based on previous work experience, summed up the appropriate plan.1. Tools: Markman This is a must-have measurement tool (do not update the download after installation, otherwise the measured data will not be saved)2. Understand the resolution principle (0.75, 1, 1.5, 2.0, 3.0)3. Know what resolution to develo
ObjectAtIndex:indexPath.row] Objectforkey:persontel]; returncell;}-(Nsinteger) TableView: (UITableView *) TableView numberofrowsinsection: (nsinteger) section{NSLog (@"%d", _contactlist.count); return_contactlist.count;}The difference between iOS and Android table usage:iOS defines an array member variable in Viewcontroller, sets Viewcontroller to TableView DataSource object, and then creates or re-uses the UI in Cellforrowatindexpath. The array member variables are updated to the UI after read
log output (Basic understanding Log4net) Three steps:1. Writing the config file (log4netstudy.config)2. Import Log4net.dll (directly in the VS Unget search, also available in the first article)3. Add this sentence code to the namespace: [Assembly:log4net. Config.xmlconfigurator (configfile = "Config's absolute path or relative path", Watch = True)]Then you can write code that "the comments for the code are all in Program.cs ".2. Form programs (where most output logs are included)If you look at
Spent years in the ASP., using various frameworks, in the original ASP. NET Web from to present MVCAt the beginning of the classic three layer, the MVC IOC is injected into the present.Suddenly found that some time is really not follow the framework of some of the best, that exactly what the framework, I personally think, as long as the use of Oh oh handy is the best frame.Here I share the framework of my own writing, is actually a classic three-layer mode + Factory modeSupport Mssql,mysql will
, 2) ' defines a brush dim Hei as Integer = Me.height D Im Wid as Integer = Me.Width ' rectangle's position and length change as the form changes Dim Rec as New Rectangle (int (WID/5), int (HEI/5), int (Wi D/2), Int (HEI/2)) ' G.drawrectangle (Pen, Rec) ' Clear existing rectangle g.clear (me.backcolor) G.drawpath (P En, Getroundedrectpath (Rec.)) End Sub Private Sub form1_paint (ByVal sender as System.Object, ByVal e as System.wi Ndows. Forms.painteventargs) Handles mybase.paint drawingrect () E
box, the habit of clicking on what kind of button [8], what color will accelerate the user's heartbeat, enhance the impulse of consumption Thus, according to the user's behavior habits, the overall layout of the site to re-planning, making simple, simple, easy, simple to the extreme, through a clear process and interface, so that users reduce the site to think and find time, so that accurate color and expression to reduce the user's psychological struggle time. Through continuous research, usin
Starting with IOS7, Apple began advocating full-screen layout, that is, by default the size of the controller's root view equals the size of the screen, even if the size of the Navigationbar+tabbar,view is not equal to the size of the screen, The result is that Navigationbar and Tabbar will cover the top and bottom areas of the view. As a resultThe top area of the current root view is covered by the navigation bar.To avoid being overwritten, you need to modify the Edgesforextendedlayout property
The structure of the WAP page is put into the lm-wall320.By JS According to the width of the different mobile phone pages according to the 320 calculation from the middle of the top to start scaling(function () {var doc = document,style=doc.createelement (' style '), Timmer = null;style.innerhtml = SetStyle (); Doc.getelementsbytagname (' head ') [0].appendchild (style);/* Screen flipping * /window.addeventlistener (window[' Onorientationchange ']? ' Orientationchange ': ' Resize ', function
Ns_available_ios (7_0); // Defaults to Uirectedgeall @property (nonatomic,assign) BOOL Extendedlayoutincludesopaquebars Ns_available_ios (7_0); // Defaults to NO, but bars is translucent by default on 7_0. @property (nonatomic,assign) BOOL automaticallyadjustsscrollviewinsets Ns_available_ios (7_0); // Defaults to YES Attribute edgesforextendedlayout, which means that the edge is about to unfold aroundThe edgesforextendedlayout value is the struct body. The default value is Uirectedgeall
;architectures->valid architectures, add arm64 at the backFor some applications with arm64, may compile link error, because: some of the third library referenced does not support arm64, according to the error prompt to find the appropriate library, and then go to see if these libraries are updatedIf there is update support arm64 's OK, if not the tragedy.Second, Unity3d game on the iOS9, some Chinese become question marks, the reason may be unity3d old version does not support iOS9 required some
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.