我们是如何创建iOS版的Guillotine菜单动画的

原文:How We Created Guillotine Menu Animation for iOS
翻译:@这个昵称有点萌

你是否曾经有过这样的疑问?为什么app中几乎是清一色的边栏(sidebar),为什么不把它做成topBar或者bottomBar,甚至cornerBar呢?

本文将要谈到的就是当前导航条动画的一个新趋势。

Read more
leetCode[021]Implement Strstr

题目:Implement strStr()

Implement strStr().

Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.

Read more
leetCode[019]BinaryTreePaths

题目:

Given a binary tree, return all root-to-leaf paths.
For example, given the following binary tree:
1
/ \
2 3
\
5
All root-to-leaf paths are:
[“1->2->5”, “1->3”]

Read more
leetCode[018]Length Of Last Word

题目:

Given a string s consists of upper/lower-case alphabets and empty space characters ‘ ‘, return the length
of last word in the string.
If the last word does not exist, return 0.
Note: A word is defined as a character sequence consists of non-space characters only.
For example, Given s = “Hello World”, return 5.

Read more
iOS 远端推送部署详解

最近几天被iOS的推送部署给搞懵了,现在特地整理下和大家进行分享。

iOS远端推送机制

APNS,全称为Apple Push Notification service,是苹果通知推送服务中最重要的一环。它是苹果通知推送服务器,为所有iOS设备以及OS X设备提供强大并且可靠的推送通知服务。每个注册通知服务的设备都会和该服务器进行长连接,从而实时获取推送通知。即使当前APP不在运行状态,当通知到达的时候也会有提示发生,最常见的就是短信服务。

Read more
关于单链表的那些事儿

关于有环单链表,即单链表中存在环路,该问题衍生出很多面试题,特在此汇总,方便查阅也帮助自己梳理下思路。

Read more
leetCode[002]Reverse Words in a String

题目:Reverse Words in a String

Given an input string s, reverse the string word by word.
For example, given s = “the sky is blue”, return “blue is sky the”.

Read more
leetCode[003]Two Sum

本文主要包括leetCode题集里的两个题目,Two Sum1 和 Two Sum2

Read more
leetCode[002]Intersection of Two Linked lists

题目:Intersection of Two Linked lists

Write a program to find the node at which the intersection of two
singly linked lists begins.

    For example, the following two linked lists:

      A: a1 → a2
            ↘
             c1 → c2 → c3
           ↗    
B: b1 → b2 → b3   
 begin to intersect at node c1.

  Notes:
    1. If the two linked lists have no intersection at all, return null.
    2. The linked lists must retain their original structure after the function returns.
    3. You may assume there are no cycles anywhere in the entire linked structure.
    4. Your code should preferably run in O(n) time and use only O(1) memory

Read more
关于Lambda的一点梳理

关于C++11的新特性,最近接触比较多的就是关于thread的部分,还有就是Lambda表达式,今天主要针对Lambda的用法进行一定的阐述和汇总(参考链接在文章下方,向大师致敬!),同时给自己梳理下知识点,加深印象。

Read more