How to take screenshots of any controls on the interface and save them as PNG

UIView * view = [[[[UIApplication sharedApplication] windows] objectAtIndex: 1] subviews] lastObject]; // obtain a subView of a window NSInteger index = 0; // used to name the saved pngFor (UIView * subView in [view subviews]) {// traverses the

IPhone development study note 005-use XIB to customize a UIView, and then add this view to the controller's vie

1. Create a single view application iOS application project named CustomView. For example, we do not add any controls to customviewcontroller. xib:2. Create a CustomView. xib. The procedure is as follows:Drag a label and a button to the

No IB jump page for iPhone Development

1. Use UINavigationController to switch between pages in the event Code implemented in AppDelegate. m.   -(BOOL) application :( UIApplication *) application didfinishlaunchingwitexceptions :( NSDictionary *) launchOptions { Self. window =

IPhone C Basics on the second day

Today we are mainly talking about the basis of C. This time we will mainly explain it in detail by code.First of all, the biggest headache is the difference between a = I ++ and a = ++ I. a = I ++ first assigns a value and then increases itself, a =

Png Image Processing in iPhone

As we all know, the png images included in the iPhone are already compressed and cannot be viewed directly. However, they can be converted to the source image using tools. Conversion to source ImageAfter Xcode is installed (My installed version is 4

Ios panoramic view demo

Demo function: provides a panoramic view, which allows you to browse the page from top to bottom, right to back, and right. Demo Description: In the project, pano.jpg is a texture. Place the image on the Ball Model, set the camera to the center of

IOS learning: AVAudioPlayer playing music files and reading music files in the ipod Library

The following figure shows the debugging results on the ipad.    The following is the code with comments in the Code: [Cpp]//// RootViewController. h// SoundDemo//// Created by on 13-6-21.// Copyright (c) 2013 DoubleMan. All rights reserved.// #

IOS: Video Playback

I. Media Player framework Video Playback is complicated because Apple encapsulates their processing in the Media Player framework perfectly. To use the Media Player framework, you must add the MediaPlayer. framework to the project and import in the

IOS Design Pattern Learning (14) iterator

1 PrefaceIn object-oriented systems, the design pattern for the iterative behavior of abstract sets is called the iterator. 2. Details2.1 Brief IntroductionThe iterator provides a method to access elements in an aggregate object (SET) sequentially

IOS study note 35 -- UIPasteboard/UIMenuController (1)

Let's talk about the results of today, the use of the clipboard and the custom clipboard. Direct call of system clipboard In fact, the whole process is very simple. I will use a custom UILable I wrote to call the system clipboard. First, because

Processing of IOS image shadows and rounded corners

All along, the special effects of adding images to IOS are through cooperation with the artist. For example, to add a shadow, you can get a shadow from the artist and draw two uiimageviews on the interface, place the shadow below and the image above,

[IOS] Photo application

For IOS app development, how does one load the Image in the Image Library to the view? Let's take a look! Operation steps: 1. Create a SingleView project, start the simulator, click the browser on the simulator, drag and drop the local image, then

Starting from scratch, I learned ios development (20): Application Settings and User ults (

In the previous study, we learned how to add its Settings for an App, and what types of controls can be added to the Settings items, these controls are managed through a plist. We only need to modify and add the plist to map it to Settings. However,

View images of ios_sqlite Databases

Problem description: when using the sqlite database in xocde, because there is no graphical interface, sometimes it is difficult to see whether there is a problem with your own database, for example, when I was just getting started with the sqlite

Efficient ios development-related to blocks

1. Replace delegate. If we have two viewcontrollers, a and B, some events are triggered on B after we push them from interface a to interface B, these times will affect the content on interface. There are two interfaces above. When we click button 3

NSTimer detailed settings

Http://blog.csdn.net/davidsph/article/details/7899731 If (! _ Timer ){ // Create a timer, which is directly added to the current message loop. Note the difference with other initialization methods. } If (_ timer ){ NSLog

UINavigationController and UITabBarController are used together

1. Create a Tabbed Application. Projects with two tabs are created by default. 2. Add in AppDelegate. h   @ Property (strong, nonatomic) UINavigationController * NaviView1Controller; @ Property (strong, nonatomic) UINavigationController *

IOS Study Notes (13th) -- get mobile phone information (UIDevice, NSBundle, NSLocale)

UIDevice   // NSString * strName = [[UIDevice currentDevice] name]; NSLog (@ "device name: % @", strName); // e.g. "My iPhone" NSString * strId = [[UIDevice currentDevice] uniqueIdentifier]; NSLog (@ "unique identifier of a device: % @", strId); //

Cocos2d-x parses json data into arrays or dictionaries (libjson Library)

Previously in the cocos2d-x project using json parsing, integrated libjson library found that most of the parsing methods provided on the Internet get value in the parsing process, and does not save the parsing results effectively, as a result, I

Ios code controls the shadow of controls

You only need to overwrite the corresponding space. I developed the UIButton control. . H file, as follows: # Import # Import @ Interface ShadowButton: UIButton { UIColor * shadowColor; } @ Property (nonatomic, strong) UIColor * shadowColor; @

Total Pages: 709 1 .... 647 648 649 650 651 .... 709 Go to: GO

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.