Body
First, prepare
Push Local International official documents:
{"APS": {"alert": {"title": "Shou", "Loc-key": "Notification_push_live", "Loc-args":
["over140", "Broadcast test"] }, "badge": 0, "sound": "Default", "Content-available": 1}}
Nwpusher Test Push content:
Write in En.lproj/localizable.strings (System language default English):
"Notification_push_live" = ": Space_invader:%@ is broadcasting%@";
Ii. Issues
After receiving the push, the body directly shows the notification_
This example for you to share the iOS bookshelf effect of the specific implementation code for your reference, the specific contents are as follows
One, the effect chart
Second, engineering drawing
Third, the Code RootViewController.h
#import
Rootviewcontroller.m
#import "RootViewController.h"//cell #import "RootTableViewCell.h" @interface Rootviewcontroller () @end @implementat Ion Rootviewcontroller-(ID) Initwithnibname:
Nonsense not to say, directly to everyone posted in iOS navigationcontroller remove background pictures, remove the bottom line of the core code, the key code as follows:
Remove background picture
Copy Code code as follows:
[Self.navigationController.navigationBar Setbackgroundimage:[[uiimage alloc] init] Forbarmetrics: Uibarmetricsdefault];
Remove the bottom line
Copy Code code as follows:
[Self.navigationController.navi
displayed)
[Self PresentViewController:self.playerVC animated:yes completion:^{
[Self.playerVC.moviePlayer play];
}];
4. Play
[Self.playerVC.moviePlayer play];
4, for the 2nd and 3rd implementation of the scheme, after iOS9.0, unified use of Avplayerviewcontroller
(1) Advantages and disadvantages
Advantages: Self-contained playback control UI, no need to manually add
This controller is a view controller that can eject, can press stacks
You can also manually res
There are many times in iOS where you need to use the rounded button of the specified style, and here is UIButton the method for creating rounded buttons
To set the 4 corners of a button:
Top Left:UIRectCornerTopLeft
Lower left:UIRectCornerBottomLeft
Top right:UIRectCornerTopRight
Bottom right:UIRectCornerBottomRight
Sample code:
UIButton *button = [[UIButton alloc] Initwithframe:cgrectmake (n, M,)];
Button.backgroundcolor = [Uicolor ora
This example for you to share the iOS drawer effect development examples for your reference, the specific contents are as follows
Add three view to the controller displayed on the window (add only 2 view if you only need to slide one side)
Declare three view first
#import "ViewController.h"
@interface viewcontroller ()
@property (nonatomic, weak) UIView *mainv;
@property (nonatomic, weak) UIView *leftv;
@property (nonatomic, weak) UIView *
The example of this article introduces the iOS clock development process, for your reference, the specific contents are as follows
The idea is to use calayer implicit animation to achieve. Because the UIView layer, which is a manually created layer, is animated by default when its properties are changed, these properties are also called animated properties. such as bounds, backgroundcolor, position.
The clock inside the dial is a uiview, and the thr
iOS uses the photo picker (uiimagepickercontrollerdelegate) to save to the data library, the image compression
First look at the Uiimagepickercontrollerdelegate protocol, mainly using iOS-built graphics to select the controller
-(void) Imagepickercontroller: (Uiimagepickercontroller *) Picker Didfinishpickingmediawithinfo: (nsdictionary *) info
Get a picture
IOS crash log backtrace symbol
iOS crash log with dSYM files can find the crash of BackTrace, which is the most important information to solve the crash.
If you are packaging on the same Mac, import crash log will automatically sign BackTrace, you can see the method name, file name and line number
However, sometimes the version of the package is not packaged on your Mac, Xcode can't find the corresponding
iOS provides support for using other app preview files, which is document interaction Controller. In addition, iOS also supports file associations, allowing other programs to call your app to open some sort of file. And, starting with 4.2, the Quick look framework provides built-in printing for a variety of documents. You can refer to the Documentinteraction Controller class reference as well as the Quick L
1. Generate CA.CRT, SERVER.P12, Server.jks certificate Files
2. In Tomcat Conf\server.xml configuration
Where Keystorefile is the SERVER.P12 path, Keystorepass is the SERVER.P12 password, the default is ==123456== ; Truststorefile.jks path, Truststorepass is SERVER.P12 password, default is ==123456==You can test your configuration for success by https://XXXX:8443 3. Put the iOS installer package resource in a directory on the server
- Aqgk_1.0
* * about the use of AES encryption and SHA256 encryption used in IOS development
**The author in the previous period of time on this issue with the background of the docking of people, and finally finally determine the problem is our encryption, although all for the same species, but there are essential differences. Below I briefly describe the difference and enclose the main code:1. Commonly used AES encryption instructionsWe commonly used in the de
IOS Common category category shareWords 1340 Read 86 comments 2 like 8
Preface
As you know, categories are a way to add new methods to existing classes, using the dynamic Run-time allocation mechanism of OBJECTIVE-C, you can add new methods to existing classes, the way you add new methods to existing classes, called Category Catagory, and he can add new methods to any class. Include classes that do not have source code. Categories allow you to do the
Lead: The evolution of the architecture is to serve the continuous development of the business, the architecture can not be separated from the business, this is the most basic starting point. 58 City IOS clients as business volume and user volume continue to grow, architecture is also constantly challenged, what kind of architecture to adapt to these changes, the technical staff is also a big test. The architecture of the app has undergone a total of
React-native in the development engineering also has many functions which can not achieve, this needs to use the native application to realize, React-native realizes and the iOS native interaction only needs to carry on the following several steps.
1, Import rctbridgemodule header file
#import
2, the introduction of the agreement
#import
3. Export modules and methods
#import "NativeTest.h"
@implementation nativetest
//export module, default to
iOS version big turntable
Using the Cabasicanimation animation with iOS to achieve a simple, core code :
Rotating animation
Cabasicanimation *anim = [cabasicanimation animationwithkeypath:@ "transform.rotation"];
Start position
[Anim Setfromvalue:[nsnumber numberwithfloat:0]];
End
[Anim settovalue:[nsnumber NUMBERWITHFLOAT:M_PI * 2.97]];
Anim.duration = 5.0;
Animation end d
Where does the new color temperature auto Adjust (Night Shift) feature in IOS 9.3 be set?
1, after upgrading the iOS9.3 system, open the "settings" →"display and brightness" option to open the Click to enter the effect as shown in the following figure.
2, in "Display and brightness" → "Night Shift" Here we can open the entry, the specific operation as shown below .
All right, that's it. This is a small series for you t
2, add output data (Sample Object--> class object--> object--> root class object) Avcapturemetadataoutput
2.1. Set the type of input metadata (type is two-dimensional code data) setmetadataobjecttypes
3. Add Scan layer Avcapturevideopreviewlayer
4. Start Scanning startrunning
5, implement callback proxy method, get scan result captureoutput::
#import "ViewController.h" #import
Summed up one sentence: This two-dimensional code is not difficult to use
This is the end of this art
IOS keyword const, static, extern detail:
First, the preface
Reading other people's code (some excellent source) can always find some common keywords, with the accumulation of programming experience most still know what it means, but in terms of conceptual and specific usage is still somewhat vague, so deliberately collated the next three more common keywords-- Const/static/extern.
Ii. the definition and usage of the key word Const/static/extern
1
First, the preface
The two days of a small project involving remote music playback, because the first time to do this music project, side of the data to do, which involves the main technical points are:
How to play remote network music
How to toggle music resources that are currently playing
How to monitor the various states of music playback (player status, playback progress, buffering progress, playback complete)
How to manually manipulate playback progress
How to play musi
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.