, resources and scripts, console output, and so on. And it and the Web front-end debugging the same way, you can directly modify the CSS style of the Web page, the layout of the source code and other changes, using the debugger for script debugging, without the need to rerun the entire app.Five, this side I use "Baidu" example1, WebView load Baidu website "http://www.baidu.com"2. Open Safari's Web checker3, for example, I want to change these namesFollow steps 1, 2, 3:The final results are as fo
iOS Development App Transport Security has blocked a cleartext HTTP (/HTTP) resource load since it is insecure. Temporary exceptions can be configured via your app ' s info.plist file.Xcode no longer uses HTTP since 7, but instead uses HTTPS requests, but many network requests are still just HTTP requests, and we can fix thisAdd "Allow arbitrary Loads" field info.plist-> add @ "App Transport Security Settings" field and set the corresponding value val
When you create a new project, Bundle identifier=organization identifier+product Name. But their recognition of Chinese is unified into a dash-.So when you create multiple projects, you need to be aware of them. Try to use less Chinese, if you want to use Chinese, then the guarantee is not pure Chinese or Chinese readme is not the same. Otherwise a few bundle Indentifier Also, users will overwrite the old app when installing.Because this is the app's unique identity.Question of "
The children's shoes, almost all because of the Xcode6 of the problem.Cause: Before Xcode6, the file system created automatically imports the Foundation.h and UIKit.h files for the user, but the latest Xcode6 only imports the Foundation.h file for the user, missing one.So, the solution is: You can import it in the header file section:#import This problem, Google a bit, found a lot.Reference: Http://stackoverflow.com/questions/26169273/cgrect-unrecognized-in-subclasses-of-nsobject"
) This involves a multi-threaded knowledge.Generally we value for single-threaded, that is, the system can only handle one event at a time, such as our picture carousel here, if the user on the page to drag other things, such as our textview here, then the system will focus on this event, no time to take into account our picture carousel, so the picture carousel will not move.We are going to introduce the time Nsrunloop this class. What is it? In fact, read a lot of other people's notes, everyon
Case: (Hold down the option key in the simulator and the zoom gesture will appear when you click the mouse)(1) in VIEWCONTROLLER.M:--scaling things is a uiscrollview other than scrolling, so things that need to be scaled should be placed first in Uiscrollview, such as the imageview here;-While we are zooming, scrollview ourselves do not know which control we want to scale, so scrollview need a proxy to tell it, this agent is generally our controller;--and the controller must obey its protocol to
(1) Phenomenon: In general, the storage of data in a sandbox as a unit, preference data exists in the sandbox path library/preferences inside, but Xcode6 find to find there is nothing at all.(2) Reason: Xcode6 and Xcode5 and before, there is an adjustment on the emulator folder path.(3) Xcode6 's preference file is unified in a folder called Preferences, which has a lot of plist files in preference settings.The path to this file is/users/your user name/library/developer/coresimulator/devices/sim
, according to the name of storyboard to load the inside view.3, if there is no storyboard, then load the xib inside the view. The order at this point is:3.1. If the name of the xib is specified, the view inside the response is loaded;3.2, if the name is not specified, then the controller name prefix is loaded with the same xib view, such as the controller name is Wpviewcontroller, then the first load is called Wpview xib file in the view.3.2. Second, if there is no Xib file called Wpview, load
(1) Effect(2) Source code download (if prompted no small picture, you can find a replacement, see the effect on the line)http://download.csdn.net/detail/wsb200514/8176339(3) Summary:--Because the DrawRect method calls only 1 times, if you need to refresh the drawing, you need to force the call to refresh with Setneedsdisplay.--Learn the use of another "timer", the following two kinds of similar-(void) awakefromnib{ cadisplaylink *link=[cadisplaylink displaylinkwithtarget:self selector: @selec
, with the IF statement, to obtain the system version, the conversion of nsstring to float can be compared, these are no problem.In the end, the core is three words in the IF. In general, we define a "notification settings", and then register the "notification settings" in the "User notification Settings", and registered to the "User notification Settings" in the "Notification settings", are used in the box to let users decide whether to accept this notice.-This "notification setting" is primari
(1) After importing the Abaddressbook library, and then adding the header file, you can use it.-Because this library method is basically the C language style, so the class is basically a CF beginning, such as Cfstringref and Cfarrayref, it and OC NSString and Nsarray similar, can be converted to each other, using __bridge to cast, such as (__ Bridge NSString *) XXX, you can convert the original cfstringref xxx to nsstring type, the advantage is that there is no need to release operations in many
*) touches withevent: (uievent *) event{ uitouch *touch=[touches anyobject]; Cgpoint Point=[touch LocationInView:touch.view]; Create snapping behavior uisnapbehavior *snap=[[uisnapbehavior alloc]initwithitem:self.pinkview snaptopoint:point]; Set snapping properties //Damping settings, 0~1, the larger the value, the better the damping, the smaller the vibration amplitude. snap.damping=0.5; Delete all behaviors (to ensure that each click is valid, or the second time after
attribute//finally don't forget, Modify the window's root view controller Nsarray *arr2=[[nsarray alloc]initwithobjects:nav0,vc4,vc1,vc3,vc2,vc5, nil]; Uitabbarcontroller *tbcon1=[[uitabbarcontroller Alloc]init]; TBCON1.VIEWCONTROLLERS=ARR2; Self.window.rootviewcontroller=tbcon1; Override point for customization after application launch. return YES;}(1) Tabbar icon can only display 5, more than 5 are all co-located to more inside, this more system comes with the icon.(2) Main
from top to tail, it feels strange [textView1 scrollrangetovisible: Textview1.selectedrange];} The following four protocols are in the same manner as in the uitextfielddelegate, omitting to say//-(BOOL) textviewshouldbeginediting: (Uitextview *) textview;//-(BOOL) Textviewshouldendediting: (Uitextview *) textview;//-(void) textviewdidbeginediting: (Uitextview *) textView;//-(void ) Textviewdidendediting: (Uitextview *) textview;//a look is BOOL, either Yes or no, is allowed to modify the conten
of progress on the progress bar Pro1.progresstintcolor=[uicolor Redcolor]; Set the background picture of the progress bar pro1.trackimage=[uiimage imagenamed:@ "Logo.png"]; Set the background picture of progress on the progress bar pro1.progressimage=[uiimage imagenamed:@ "1.png"]; Set the progress value and animate [Pro1 setprogress:0.7 animated:yes]; [Self.view Addsubview:pro1]; [Super Viewdidload]; Do any additional setup after loading the view, typically from a
to do is compile cmd+b to prevent some frameworks from relying on other frameworks to run. General compilation will appear a lot of warnings, normal.--Most people use the Uiimageview+webcache category to process pictures.The code in the above (3) can be modified directly in the cell assignment method, which is the method provided by the framework:if (v.image) { cell.imageview.image=v.image;} else{ [Cell.imageview setimagewithurl:url placeholderImage:self.placeHolderImg options:0 completed
(1) Effect(2) Codehttp://download.csdn.net/detail/wsb200514/8261001(3) Summary--First create different types of gesture recognition based on what you need, such as:Uitapgesturerecognizeruiswipegesturerecognizeruipinchgesturerecognizeruirotategesturerecognizeruipangesturerecognizer--Then use the Addgesturerecognizer method to add these gesture objects to the desired object, such as:[Self.imgview Addgesturerecognizer:swipe];--Of course, these gestures can use Addtarget to add some event detection,
groups, stored when the navigation controller stack all the view controller, the first push into the 0, and so on, the top is definitely the last of the array So, the object that was initialized before XXX, can be represented by [Self.navigationController.viewControllers objectatindex:0], where 0 is the root view controller//So, Just to get navigationcontroller, seems to be able to do a lot of things-(void) backto{[Self.navigationcontroller poptoviewcontroller:[ Self.navigationController.viewCo
IOS Dev (66) A basic consideration of a mobile game program
Blog: http://blog.csdn.net/prevention
Tai Rui elder brother
FromLearn iPhone and iPad cocos2d Game Development
1 Handler program initiation within the basic processapplicationDidFinishLaunchingProgram cut to the backgroundapplicationDidEnterBackgroundProgram Run EndapplicationWillTerminate2 basic settings allow users to set de
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.