I developed the developer technology resources gathering place , With your support , Here's the URL
IOS There's always a change in the way we do it , Pop ups used to use AlertView, Now use UIAlertController
AlertView The macro definition of
#define showMessage(__MESSAGE__) \
UIAlertView *alertView_ = [[UIAlertView alloc] initWithTitle:@" Tips " \
cancelButtonTitle:@" determine " \
UIAlertController The macro definition of
In the parameter MESSAGE Is the prompt content , QUVC yes UIViewController It's the page you're currently working on , Pass... Directly on call self
#define showMessage1(MESSAGE,QUVC) \
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@" Tips " message:MESSAGE preferredStyle:UIAlertControllerStyleAlert]; \
UIAlertAction *okAction = [UIAlertAction actionWithTitle:@" determine " style:UIAlertActionStyleDefault handler:nil]; \
[alertController addAction:okAction]; \
[QUVC presentViewController:alertController animated:YES completion:nil];
[self.backScrollView setBackgroundColor:[UIColor redColor]];
showMessage1(@" Hello UIAlertController", self);
I started a business to do a androidApp, The number of downloads has increased 2000 More than ten thousand , All kinds of popular network mobile phone bonus packages are integrated , There are also popular movies and Taobao high coupons ！ Very suitable for all types of users .
- IOS - Common macro definition and function method
Maybe add something new from time to time github Address :https://github.com/yuqingzhude/CommonUseDemo /************************Tools**** ...
- JDStatusBarNotification And some macro definitions
// // AddTopicViewController.m // vMeet2 // // Created by Zhang Yuanhai on 16/6/30. // Copyright 2016 year h ...
- How to Swift Define the macro
I've been learning by myself these days Swift, Because before iOS The development of has been using Objective-C, So I'm used to C The macro definition of language , Swift As a safer language , To give up C Macro definition in language , Effectively prevent precompile time code ...
- [C++] C++ Macro definition in
Reprinted from :C++ Macro definition in and C++ Macro definition One .#define analysis #define yes C Macro definition commands provided in the language , Its main purpose is to provide some convenience for programmers when programming , And can improve the efficiency of the program to a certain extent ...
- iOS Development of -- Macro definition and const The difference and use method of
Common uses of macro definitions : Define a piece of code , Or specify string extraction macro . const( Constant ): When there are string constants , Apple recommends that we use const, Apple often defines a commonly used string as const Macro definition and const The difference between : compile ...
- typedef Type renaming and #define Macro definition (1)
http://www.blogjava.net/jasmine214--love/archive/2010/11/29/339307.html in real life , The concept of information might be length , Quantity and area, etc . stay C language ...
- oc85-- Simplify singletons with macro definitions
//Singleton.h // You can use it later interfaceSingleton Instead of the following method declaration . \ Indicates that the next line is also the content of the previous line . #define interfaceSingleton(nam ...
- c++ Macro definition command
At the beginning of the program with # The first order , They are precompiled orders . There are three types of precompile commands : Macro definition command . The file contains commands . Conditional compilation command : Let's talk about macro definition today : The macro definition command defines an identifier as a string , The identifier in the source program is replaced by the specified string ...
- linux in offsetof And container_of Macro definition
linux The kernel offsetof And container_of The macro definition of #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->M ...
- 2015.1.25 Delphi Several ways to open a URL link
Delphi Several ways to open a URL link 1. Use shellapi Open the default browser in the system First of all, you need to refer to shellapi The unit is in uses Add shellapi, Here we need to know that there are ...
- iOS 3D Touch Adaptation development
3D Touch The main application of There are two main application introductions in the document : 1.A user can now press your Home screen icon to immediately access fun ...
- JQuery Knowledge quick view 4 — style
Earlier, we got the object set , This article describes how to control the style of an object set Basic concepts In a html On the page , We have two ways to control the style of an object , use HTML attribute control , Or use CSS Class to control , Both methods can be controlled ...
- (step8.2.4)hdu 1846(Brave Game—— Bash Game )
The main idea of the topic : Enter an integer t, Indicates that the test case is . Then the input 2 It's an integer n,m. The number of stones in the pile , And the maximum number of stones you can get each time . Judge which side is the winner Their thinking : 1) It's a simple bash game : The Bashi game , yes ...
- Why use LUT Than GAL Save resources
Why use LUT Than GAL Save resources A[1:0] B[1:0] Implement a comparator , If A=B Output 1 Otherwise output 0 Conventional GAL need 24= 16 Storage unit (ROM) To store the result data , Implementation method ...
- note ：Maven Project directory structure
Maven Advocate the use of a common standard directory structure , So that developers can be familiar with a Maven After the project , For others Maven Engineering can also clearly understand . This also saves a lot of setup trouble , The following document describes Maven The desired directory structure , And it's also ...
- = = use createJS Write a flyppyPeople
Statement : This is an original article , If you want to reprint , Please indicate the source WAxes, thank you ! lately flyppybird It's very popular , I have nothing to do at noon today , I wrote a story with the existing material flyppyPeople, Because the character is a person , So it's called People La ...
- Deep Learning System Training II ： Gradient descent principle
Basic concept understanding : One epoch: Now all the data is running ( iteration ) Once again : Well, the two one. epoch, It's running all the data twice , Three epoch I ran all the data three times , And so on . batch_size: How many data per iteration ...
- Hadoop Way of learning （ sixteen ）Hadoop command hadoop fs -ls Detailed explanation