Twitter sharing and authorization (iOS)

PreparationRegister for appkeyIntegrated sharesdk (download address)Xcode configuration: urlScheme is the registered appkey, white list: douyinsharesdk, douyinopensdkBusiness codeInitialization import <ShareSDK/ShareSDK.h> [ShareSDK registPlatforms:^(SSDKRegister *platformsRegister) { //Jitter [platformsRegister setupDouyinByAppKey:@"app_ ...

Posted by avillanu on Sun, 10 Nov 2019 11:09:43 -0800

iOS Development -- strings NSString and NSMutableString of Foundation framework

Dependency: NSString: NSObject: Foundation NSString is an immutable string object. This does not mean that the value of the variable declared by this object is immutable, but that after initialization, you cannot change the value in the memory allocated by this variable, but you can reallocate the memory space of thi ...

Posted by aaadispatch on Tue, 05 Nov 2019 12:12:10 -0800

One of the solutions for the video tag in html that can't be played in ios wechat

Recently, we are working on a wechat enterprise project. One of the requirements is to play video on the enterprise page. At the beginning, we used the video tag to load the video address directly. As a result, it can play normally in android phones, but not in ios phones. In ios, the symptom is that the video is always loaded, but it can't be ...

Posted by lore_lanu on Tue, 05 Nov 2019 10:27:08 -0800

Educational codes 58 (rated for Div. 2) C. division and union

Topic connection: https://codeforces.com/problemset/problem/1101/C Abstract: for n line segments, find a dividing point, and divide the line segments into two sets. The line segments of different sets will not have intersections My own approach is to discretize the endpoints and enumerate them to determine whether ...

Posted by kkeim on Mon, 04 Nov 2019 08:47:47 -0800

Wechat jump browser prompt, 366API analysis how to directly jump to mobile phone default browser in wechat browser

Many friends' APP promotion links need to be publicized, propagated, downloaded and so on in wechat, but you must have found that the download links of APP are blocked in wechat. But wechat is the biggest social platform. For its own benefit, it blocks all APK download links. How can we solve this problem? Solution: Based on wechat interface, ...

Posted by alphamic on Sun, 03 Nov 2019 03:45:20 -0800

Day25 class related magic methods

1. Magic properties related to class #Get the internal member structure of an object or class#Get the internal doc ument of an object or class#Get class name function name#Class gets the class to which the current object belongs#Get all the parent classes directly inherited by a class, return tuples   2. reflection #Concept: use string to m ...

Posted by easmith on Sat, 02 Nov 2019 15:21:04 -0700

kuangbin special topic a simple search for very Cola HDU - 1495

Title Link: https://vjudge.net/problem/HDU-1495 There are two empty cups (N l and M L respectively) and A full can of coke (S l), S = N + M, three containers can be poured into each other. If A is poured into B, there are only two cases:(1) pour all A into B, and the number of liters in B is less than or equal to the maximum capacity of B.(2) ...

Posted by fukas on Sat, 02 Nov 2019 04:01:05 -0700

K - Strings in the Pocket

I will give you two strings a and B of the same length. You can invert a substring of string a once to make a and B the same. I will ask you how many ways to invert. It is discussed in two cases. If the initial a and B are the same, the answer is the sum of the palindrome radius of each character. If a and B are different, find out the first d ...

Posted by SparkleD on Fri, 01 Nov 2019 22:47:02 -0700

In school training [group]

meaning of the title Divide n numbers into several groups. The minimum number in each group cannot be more than the total number of elements in this group. Find the number of schemes. N<=2000.   Reflection If we get a partition of n numbers, we can simply find out the number of schemes. After sorting it from large to small, let larger I ...

Posted by mananx on Thu, 31 Oct 2019 16:08:28 -0700

Closure function and decorator

Closure function Definition of closure function: Closed: a function defined within a function Package: the inner function references the name of the outer function scope There are two ways to pass values to function bodies: 1. transmitting ginseng   def index1(username): print(username)   2. closure def outter(x,y): #Passi ...

Posted by matafy on Tue, 29 Oct 2019 10:28:10 -0700