`
文章列表
转自:http://blog.csdn.net/justinjing0612/article/details/6954407   了解iPhone应用程序中App目录结构是本文要介绍的内容,不多说,直接进入内容。iPhone的App的目录结构如下: 对于一个运行在iPhone得app,它只能访问自己根目录下得一些文件(所谓sandbox). 一个app发布到iPhone上后,它得目录结构如下: 1、其中得app root可以用 NSHomeDirectory() 访问到; 2、Documents 目录就是我们可以用来写入并保存文件得地方,一般可通过:
转自:http://blog.csdn.net/cutesource/article/details/5838693#comments   单点登录SSO(Single Sign On)说得简单点就是在一个多系统共存的环境下,用户在一处登录后,就不用在其他系统中登录,也就是用户的一次登录能得到其他所有系统的 ...
转自:http://www.cocoachina.com/iphonedev/sdk/2011/1111/3487.html     首先看两个runloop的示例,来源:http://paste.lisp.org/display/86524 第一个:   #include <CoreFoundation/CoreFoundation.h>     
  转自:http://useyourloaf.com/blog/2010/03/29/simple-iphone-keychain-access.html   The keychain is about the only place that an iPhone application can safely store data that will be preserved across a re-installation of the application. Each iPhone application gets its own set of keychain items w ...

Valid Palindrome

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Panama" is a palindrome."race a car" is not a palindrome. Note:Have you consider that the string might be empty? This is a good qu ...
Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in that surrounded region . For example, X X X X X O O X X X O X X O X X

IOS媒体层

转自:http://wd397.blog.163.com/blog/static/60860635201281683054319/   媒体层包含图形技术、音频技术和视频技术,这些技术相互结合就可为移动设备带来最好的多媒体体验,更重要的是,它们让创建外观音效俱佳的应用程序变得更加容易。您可以使用iOS的高级框架更快速地创建高级的图形和动画,也可以通过底层框架访问必要的工具,从而以某种特定的方式完成某种任务。 图形技术 高质量的图形是iOS应用程序的重要组成部分。创建应用程序最简单最有效的方法是使用事先渲染过的图片,搭配上标准视图以及UIKit框架的控件,然后把绘制任务交给系统来执行。但 ...
转自:http://blog.csdn.net/cjsafty/article/details/7922849   简介:HTTP Live Streaming(缩写是 HLS)是一个由苹果公司提出的基于HTTP的流媒体 网络传输协议。 是苹果公司QuickTime X和iPhone软件系统的一部分。它的工作原理是把整个流分成一个 ...
Given inorder and postorder traversal of a tree, construct the binary tree.   Note:You may assume that duplicates do not exist in the tree.   /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val( ...
Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree.     // construct tree from preorder and inorder class Solution { public: TreeNode *buildTree(vector<int> &preorder, vector<int> ...
转自:http://witcheryne.iteye.com/blog/1734706     In the posts, I will show how to use ffmpeg on iOS.   This posts is a document for this project:  https://github.com/lvjian700/ffmpegc-demo   Now, ffmpec support x264 module. If you use the script before, please check your version first.    ...

Add Binary

Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100".   class Solution { public: string addBinary(string a, string b) { if(a.size() == 0) return b; if(b.size() == 0) return a; str ...
// Best Time to Buy and Sell Stock I class Solution { public: int maxProfit(vector<int> &prices) { if(prices.size() < 2) return 0; int mj = 0, mjIdx = 0; int ret = 0; for(int i = 1; i < prices.size(); ++i) { if(prices[i] > ...
把以下代码放在点解 “编辑” 按钮时触发的方法中。   dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.001); dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ for (UIView *sv in self.self.tableView.subviews) { if ([sv isKindOfClass:[UITableViewCell class]]) { ...
// Type your C++ code and click the "Run Code" button! // Your code output will be shown on the left. // Click on the "Show input" button to enter input data to be read (from stdin). #include <iostream> using namespace std; void mergeArray(int a[], int beg, int mi ...
Global site tag (gtag.js) - Google Analytics