A few questions about development experience

Source: Internet
Author: User

---------------------------------I am handsome title bar "End With eggs, eggs"-----------------------------------------------------

The first is the UI, about internationalization in the app: setting up a toggle between English and Chinese. This is basically the creation of a new file type 1, file-> new-> flie->resource->strings file, create a new files of type Strings, there is a need to pay attention to the place, The name of this file must be localizable, because Xcode is looking for international content based on the localizable file, 2, click on the created file and click in the Control Panel on the right side of Xcode. Localize. button to enable internationalization 3, add the appropriate language to the corresponding loacalization under the Info tab in project. 4, after adding the language, in the localizable will appear the corresponding language files, so directly in the file to write the software involved in the characters can be. For example: "OK" = "OK"; [Note that the end of the semicolon do not forget] 5, the above is the configuration, the following is used: Use the characters inside, only need to use nslocalizedstring (..,..) You can, for example:
Uialertview *alert = [[Uialertview alloc] initwithtitle:nslocalizedstring (@ "waring", nil) Message:nslocalizedstring (@ "networkconnecterror"delegate: Self Cancelbuttontitle:nslocalizedstring (@ "CANCEL", nil) Otherbuttontitles: Nslocalizedstring (@ "OK", Nil), nil]; [Alert show];

In this way, the internationalization of the application is configured to complete.

--------------------------------------I'm a gorgeous split-line----------------------------------------------------------------- -

about the debugging of the program: the general use of "breakpoint debugging" is very common, the use of NSLog print output is not a few, after all, this is more convenient. However, the program involves a large number of output statements, so that the application has a potential risk, so we can use this printing method, better control debugging methods to minimize the impact of debugging on the program.
1. #ifdef DEBUG 2. #define Dmlog (...) NSLog (@ "%s%@", __pretty_function__, [NSString stringwithformat:__va_args__])3. #else 4. #define Dmlog (...) do {} while (0)
this way, if you use Dmlog, it can only be printed during the debug build. __PRETTY_FUNCTION__ can also help print out the name of the function where log is located.

-------------------------------------------------or Me, I'm still a gorgeous split-line----------------------------------------------------

general application hosting to dandelion package upload when you choose the save for Enterprise deployment packaging method, and then export [export], remember, upload dandelion app can not be used to directly drag the package into itunes and then dragged out to get the IPA package , the popular saying is that this time the package is used to go online Apple store instead of testing, Dandelion is a test platform, the upload of this package is not installed.

-------------------------------------------------a discreet and delicate dividing line----------------------------------------------------------

lazy Loading in OC is widely used, and in Swift2.0 to use keywords to declare, directly on the code bar:
    Lazy var applicationdocumentsdirectory:nsurl = {        // The directory the application uses to store The Core Data store file. This code uses a directory named "Lalala. Serviceshop "In the application ' s documents Application support directory.        Let URLs = Nsfilemanager.defaultmanager (). Urlsfordirectory (. Documentdirectory, Indomains:. Userdomainmask)        return urls[urls.count-1]    } ()
in the main interface of Switch view
                Let app = Uiapplication.sharedapplication (). Delegate as! appdelegate                App.createtabbarview ()

----------------------------------------------------

the drop-down menu implements the originalManagement Set a tableview, the bottom can be a transparent view, plus a imageview, the background image can be set to the kind of angular, PS processing, and then add a TableView, the same set of transparent, TableCell can be customized.
      about 3DTouch "click on the icon and jump to the interface"     Mainly refers to the interface of the jump, I mainly use the method of notification interface jump, in the root view of the program "parent class", inside the registration notice, in the corresponding interface of the interface to switch and call can be "NOTE: the interface switch time to pay attention to the use of delay, Because sometimes the interface has not been created to jump is not achieve the goal of the effect of "on the issue of HTTPS for network requests, the default is to use HTTPS from Xcode7, so configure it in the Info.plist file:
<key>NSAppTransportSecurity</key>    <dict>        <key>nsallowsarbitraryloads</key >        <true/>    </dict>

-------------------, I'm coming again,-------------------------------.about a very bad error message that appears"Certificate identity ' IPhone developer:xxxx Ho (2j123456ha) ' appears more than once in the keychain. The Codesign tool requires there only is one. " At this time your heart is rejected, has reached the last step of the problem, the death of the heart estimates have, but slowly, analysis will be able to knowThe reason for this is that keychain access has an expired ' iPhone distribution:xxxx ', but not shown in keychain/login, but in the keychain/system, and is hidden, so it needs to be shown in the key chain-- Displays the expired certificate, and then deletes the login under the keychain and the expired certificate of the system.

and I am searching for the answer, I see a post, it is possible to delete the expired certificate failed, but the keychain inside the display is deleted successfully, the solution is to restart the keychain, delete, repeat the process until the actual deletion of the success.

Sometimes there is no expired, redundant certificates in the keychain, but we can see the redundant certificates in the building setting code signing of Xcode's target, which proves that our keychain is not clearly doing Net.

to summarize, the steps to solve this problem are: 1. Clear out the excess certificate in keychain. 2. Refresh the provisioning profile inside Xcode.

-----------------------I'm an egg? "Oh, NO"-------------------------for information about how to look at crashes after a crash, we usually get some examples of crashes
2: Basic information date/time:      OS Version: report   version://3: Exception Exception type:exception codes:highlighted Thread://4: Thread Backtracking Threads 0 Name:  Dispatch queue:com.apple.main-threadthread 0:thread 1://5: Thread Status thread 0 crashed with ARM thread State (32-bit)://6: Binary image binary Images:
(1) Process informationis information about the process of flash-back. Incident Identifier is a unique identifier for the crash report. Crashreporter Key is a unique key value that corresponds to the device identity. Hardware Model identifies the device type.
Process is the name of the app. (2) basic informationThis section gives some basic information, including the date and time when the flashback occurred.(3) Abnormalin this section, you can see the type of exception thrown when a flashback occurs. You can also see the exception code and the thread that throws the exception(4) thread backtrackingThis section provides a backtracking log of all threads in the app. Backtracking is the list of all active frames when a flashback occurs. name of the binary library Address of the calling method
(5) Thread statusThis section is the value in the register of the Flash-back. This part of the information is generally not needed, because the information in the backtracking section is enough to let you find out where the problem lies. (6) binary imageThis section lists the binaries that have been loaded when the flash is rolled out. by looking at the content, you can get the complete error message and navigate to where the error is. -------------------eggs come-----------------------attached to a software Daquan URL: http://www.sdifenzhou.com/category/black-apple/apple-software/page/6/

Reprint please attach link: http://www.cnblogs.com/windsSunShine/p/5869465.html

"Personal view, not happy to spray"

A few questions about development experience

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.