查看分类:  ASP.NET XML/XSLT JavaScripT   我的MSN空间Blog
posts - 173,  comments - 1172,  trackbacks - 0
共5页: 上一页 1 2 3 4 5 下一页 
摘要: json: 效果图:阅读全文
posted @ 2013-01-25 16:35 不及格的程序员-八神 阅读(458) 评论(0) 编辑
摘要: Ah found it, they are saved at:~/Library/Developer/Xcode/UserData/CodeSnippets/Each one is a plist file. In contrast to Xcode 3 there is now one file per snippet.阅读全文
posted @ 2013-01-11 11:15 不及格的程序员-八神 阅读(210) 评论(0) 编辑
摘要: Your app has aUIWindow, which contains your root view controller's view, which contains the button:UIWindowyour root viewUIButtonWhat you didn't understand is that theUIWindowrotates the user interface by applying a rotation transform to your root. Take a look at the view hierarchy when the 阅读全文
posted @ 2013-01-11 10:14 不及格的程序员-八神 阅读(274) 评论(0) 编辑
摘要: -阅读全文
posted @ 2013-01-10 17:03 不及格的程序员-八神 阅读(560) 评论(0) 编辑
摘要: When you run the Build and Archive command, Xcode 3.2.2 or later fetches your application binary and its associated .dSYM file and saves them in your 阅读全文
posted @ 2013-01-10 14:09 不及格的程序员-八神 阅读(3840) 评论(0) 编辑
摘要: Using Injection it is possible to make a change to the implementation of an Objective-C® class and have it take effect as soon as the class is saved without having to restart the application. This feature works for OS X and iOS applications in the simulator and on iOS devices.阅读全文
posted @ 2013-01-10 13:58 不及格的程序员-八神 阅读(131) 评论(0) 编辑
摘要: Three20框架好久不用了,而且也已经过时了,不过它在当时来讲确认解决了许多麻烦,省确了许多代码,仅此环念。最近用xcode4.2打开老项目后发现,不能编译,解决掉那些被警告的过时api后又发现 “Empty TTTableViewHeaders displaying although they shouldn't!”,因为苹果在ios5这后表格行为发生了变化。不过最为有趣的是我使用xcode3.2编译到我的ios5真机中,显示是正确的,而用xcode4.2编译就会出现empty head.tableView:heightForHeaderInSection:Special Cons阅读全文
posted @ 2012-12-29 13:39 不及格的程序员-八神 阅读(232) 评论(0) 编辑
摘要: UIView Class Reference - Instance MethodslayoutSubviewsLays out subviews.- (void)layoutSubviewsDiscussionThe default implementation of this method doe...阅读全文
posted @ 2012-12-27 11:11 不及格的程序员-八神 阅读(7335) 评论(1) 编辑
摘要: Today, i had trying update my project with three20 to ios6, but somethings had raised that it reports errors (e.g. _tapCount,_view can not by finded) in fileUIViewAdditions.m.打开文件后发现里面有宏定义,判断如果是调试阶段,会使用 私有变量 输出某些信息,结果屏避之再编译就可以了。 1 / Remove GSEvent and UITouchAdditions from Release builds 2 #ifdef ..阅读全文
posted @ 2012-11-21 16:23 不及格的程序员-八神 阅读(302) 评论(0) 编辑
摘要: 在非arc与arc的环境中使用时,导致程序crash. he lightest-wight solution would be to create a small helper class in the the file as the UIView that's using the CALayer:阅读全文
posted @ 2012-11-08 09:50 不及格的程序员-八神 阅读(479) 评论(2) 编辑
摘要: 1 #define PSIZE 16 // size of the pattern cell 2 3 static void MyDrawStencilStar (void *info, CGContextRef myContext) 4 { 5 int k; 6 dou...阅读全文
posted @ 2012-11-06 16:09 不及格的程序员-八神 阅读(188) 评论(0) 编辑
摘要: 最近用objective-c画图形,当时我就是想无论在Mac或Windows平台中都存在绘图环境(并且graphics content都拥有图形环境状态堆栈)的概念,这种绘图模型是谁发明的,最早使用这种模式的是什么编程平台?终于找到最原始的出处:来自Adobe的postscript,我认为是在苹果成...阅读全文
posted @ 2012-10-31 17:00 不及格的程序员-八神 阅读(198) 评论(0) 编辑
摘要: Configuring the ViewportSafari on iOS displays webpages at a scale that works for most web content originally designed for the desktop. If these default settings don’t work for your webpages, it is highly recommended that you change the settings by configuring the viewport. You especially need to co阅读全文
posted @ 2012-10-31 15:48 不及格的程序员-八神 阅读(885) 评论(0) 编辑
摘要: Cheryl Simmons - MSFT13 May 2007 9:36 PM1Periodically someone questions me about a caution that appears in all of the System.Drawing.* namespace overview topics. It reads:"Classes within theSystem.Drawingnamespace are not supported for use within a Windows or ASP.NET service. Attempting to use 阅读全文
posted @ 2012-10-29 17:02 不及格的程序员-八神 阅读(118) 评论(0) 编辑
摘要: Mac OS 升级到 Mountain Lion 10.8.2 后,Xcode 4.5 的 git gui 功能失效了,准备降级到lion.在 Google 查到有许多美国或日本朋友也遇到了此类问题。我们这次损失很大,所有客户端都不能与 git 仓库同步了。不能在 organizer 中连接局域网内 git 服务器,提示用户名或密码错误,但命令行依然好使,github 也能连上。Mountain Lion 杀伤力这么巨大?很多软件都不兼容,比如最简单的屏幕保护screenstagram.最新情况,Administrator用户名是首字母大写,修正后可以正常重新(新建)连接git仓库了,但是这仍阅读全文
posted @ 2012-10-16 14:06 不及格的程序员-八神 阅读(380) 评论(0) 编辑
摘要: 1、用Disk Utility(在实用工具里面)把Xcode 3.2.x的磁盘映像转换成一个可读写的dmg文件。转 换好后双击它,让Finder在设备里面显示它。在Finder里面右键Xcode包(Xcode and iOS SDK),选择“Show Packages”进入Contents文件夹。(右键xcode包,打开方式,选择实用工具下的Disk Utility(磁盘工具),会弹出来一个框,宽上边功能条里有转换,选择转换成可读写,然后选择转换到桌面。转换好了后双击转换后的包,出来准备安装的 框,右键Xcode and iOS SDK,选择显示包内容)2、用TextEdit打开iPhoneS阅读全文
posted @ 2012-10-16 13:33 不及格的程序员-八神 阅读(197) 评论(0) 编辑
摘要: #define DEGREES_TO_RADIANS(d) (d * M_PI / 180)/* [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.35]; self.rotaImageView.layer.transform = CATransform3DRotate(self.rotaImageView.layer.transform, 3*M_PI, 0, 0, 1); [UIView commitAnimations];...阅读全文
posted @ 2012-09-24 09:20 不及格的程序员-八神 阅读(280) 评论(0) 编辑
摘要: 基本函数直角三角形。如右图,当平面上的三点A、B、C的连线,、、,构成一个直角三角形,其中为直角。对于与的夹角而言:对边(opposite)邻边(adjacent)斜边(hypotenuse)函数英语简写定义关系正弦Sinesin余弦Cosinecos正切Tangenttan余切Cotangentc...阅读全文
posted @ 2012-08-27 10:26 不及格的程序员-八神 阅读(1061) 评论(0) 编辑
摘要: With a variable typedid, you can send it any known message and the compiler will not complain. With a variable typedNSObject *, you can only send it messages declared by NSObject (not methods of any subclass) or else it will generate a warning. In general,idis what you want.idmeans "an object&q阅读全文
posted @ 2012-06-25 13:05 不及格的程序员-八神 阅读(504) 评论(0) 编辑
摘要: 获取app的iap购置项,是通过app的Bundle identifier标识来向apple服务器获取的,在购买指定商品之前,产品队例必须已经获取了产品标识,否则会出错的。我分别设置了我们账号的Bundle identifier,与一个日本账号的Bundle identifier,结果获取的购买项都是各自在iTunes connect中设置好的。但是当我设置成iSlash的Bundle identifier时候,却什么也取不到,不知道为什么呢?。我后来证实也可以获得呵呵!另外在获取购买项时,有时会出现获取不到localizedTitle的情况,苹果很抽风。而且有时会买不到商品的情况,就是你获取阅读全文
posted @ 2012-06-23 10:41 不及格的程序员-八神 阅读(218) 评论(0) 编辑
摘要: 昨天北京时间6月21日,在测试APP内购的时候 SKProduct 的属性localizedTitle突然为null了,其它属性正常,而前一天代码还好使,反重调试无果....今天果断再次google,发现美国那边也不只一人出现同样的问题,所以断定是苹果出了问题.http://stackoverflow.com/questions/11134303/nil-localizedtitle-in-skproducthttps://devforums.apple.com/thread/155695?start=0&tstart=0https://discussions.apple.com/me阅读全文
posted @ 2012-06-22 08:56 不及格的程序员-八神 阅读(1133) 评论(0) 编辑
摘要: IntroductionIn-App Purchase allows you to embed a store directly within your application. You implement In-App Purchase in your application using the Store Kit framework. Store Kit connects to the App Store on your application's behalf to securely process payments from the user. Store Kit prompt阅读全文
posted @ 2012-06-08 10:02 不及格的程序员-八神 阅读(329) 评论(0) 编辑
摘要: 在StoryBoard中设置弹出Model ViewController时,将segue的presentation项选择为除了UIModalPresentationCurrentContext和Default(它代表目标视图控制器的presentation属性设置,如果目标属性为CurrentContext那么也会发生)之外,当内存紧缺时,父视图都不会viewDidUnload,而XCode3.2则不在呼这一设置,让我很是费解啊。如果想在多于二层的视层控制器保证最后一个视图可以半透显示在上层的话,你必须将最开始的那层视图控制器设置为CurrentContext,但是也导致了它会视图释放掉,然后阅读全文
posted @ 2012-06-07 17:12 不及格的程序员-八神 阅读(798) 评论(0) 编辑
摘要: being retina display does not depend only on the ppi. it also depends on the viewing distance.using the formula a = 2tan-1(h/2d) at 15 inches(2.54厘米) away qualifies for a retina display.the eyes cannot discern the pixels at the distance, which is the essence of Retina Display.Retina 屏幕究竟是如何定义的?为何分辨率阅读全文
posted @ 2012-06-06 10:02 不及格的程序员-八神 阅读(338) 评论(0) 编辑
摘要: 陏着类似"来电归属地"这样的App越来越多,由于是采用企业开发账号,那么当账号过期之后它们的程序将不能再启动了,它们只有一年的使用时间. 对于这样的壳应用在app store上,对用户的利益是无法保障的,应该被禁止。 items assets kind software-package url kind full-size-image needs-shine url kind display-image needs-shine u...阅读全文
posted @ 2012-06-05 09:52 不及格的程序员-八神 阅读(535) 评论(2) 编辑
posted @ 2012-06-04 16:39 不及格的程序员-八神 阅读(268) 评论(0) 编辑
摘要: Generated by APNs for each deviceDifferent from UDID entered into Program PortalDevice token value may changeApp is restored to a new deviceSame device is erased then app is reinstalled without restore uniquely identifies deviceCall registration API at each app launch and then send to server every t阅读全文
posted @ 2012-05-31 15:16 不及格的程序员-八神 阅读(231) 评论(0) 编辑
摘要: SummaryARC works by adding code at compile time to ensure that objects live as long as necessary, but no longer. Conceptually, it follows the same memory management conventions as manual reference counting (described inAdvanced Memory Management Programming Guide) by adding the appropriate memory ma阅读全文
posted @ 2012-05-31 15:03 不及格的程序员-八神 阅读(783) 评论(0) 编辑
摘要: Including QuickTime Movies In A Web PageNow that you've finished compressing your movie, you can deploy it to the web.QuickTime movies can be included in a web page allowing visitors to your website to experience media seamlessly inside their browser. This is accomplished by adding some HTML to 阅读全文
posted @ 2012-05-30 14:22 不及格的程序员-八神 阅读(169) 评论(0) 编辑
摘要: 败家苹果参考直接引用http://pubs.opengroup.org/onlinepubs/009695399/functions/printf.html 文档来说明格式化的使用,可该文档没有微软的MSDN说的清楚明确,看看下面MSDN给出的格式说明可以说明一切。 %[flags][width][阅读全文
posted @ 2012-05-22 14:12 不及格的程序员-八神 阅读(207) 评论(0) 编辑
摘要: Core Graphics FrameworkThe Core Graphics framework (CoreGraphics.framework) contains the interfaces for the Quartz 2D drawing API.Quartzis the same advanced, vector-based drawing engine that is used in Mac OS X. It provides support for path-based drawing, anti-aliased rendering, gradients, images, c阅读全文
posted @ 2012-05-17 09:33 不及格的程序员-八神 阅读(783) 评论(0) 编辑
摘要: The Mac Application EnvironmentMac OS X incorporates the latest technologies for creating powerful and fun-to-use apps. But the technologies by themselves are not enough to make every app great. What sets an app apart from its peers is how it helps the user achieve some tangible goal. After all, use阅读全文
posted @ 2012-05-03 11:09 不及格的程序员-八神 阅读(566) 评论(0) 编辑
摘要: Specifying High-Resolution Images in iOSAny iPhone application built for iOS 4.0 and later should include high-resolution versions of its image resources. When the application is run on a device that has a high-resolution screen, high-resolution images provide extra detail and look better because th阅读全文
posted @ 2012-04-20 16:46 不及格的程序员-八神 阅读(374) 评论(0) 编辑
摘要: 1. 我目前设置了双显示在mac系统上,另外一个显示器是原来pc的,时常切换,但在切换成pc时,mac系统内的鼠标滚动出现不平滑状态。。。。 目前系统更新到了mountain lion状况没有改变2.xocde 4.3 bugs, 当xcode窗口跨越两个显示器,这时点击xcode file菜单中的源代码控制器进行代码提交之后,xcode窗口位置会向最左面屏幕偏出许多。。。阅读全文
posted @ 2012-04-18 09:08 不及格的程序员-八神 阅读(227) 评论(0) 编辑
摘要: RootViewController.h 作为UINavigatorController根视图,模式弹出新窗口时,新窗口透明的部分无效 (设置UINavigatorController的modalPresentationStyle = UIModalPresentationCurrentContext即可)。1 untitled *vc = [[untitled alloc] initWithNibName:@"untitled" bundle:nil];2 self.modalPresentationStyle = UIModalPresentationCurrentCo阅读全文
posted @ 2012-04-13 13:44 不及格的程序员-八神 阅读(415) 评论(0) 编辑
摘要: 为了安装git server ,在xp上安装了copssh,结果就是系统重启后,administrator登录选项没了,只有guest账号了,妈呀guest什么也干不了啊。百度之。先用命令 control userpasswords2进行系统用户登录选项设置页面,新建一个管理员账号,再设置登录时输入用户名与密码。重新登录时ctrl+alt+del输入administrator与密码搞定。阅读全文
posted @ 2012-04-11 17:43 不及格的程序员-八神 阅读(316) 评论(0) 编辑
摘要: 1 // NOTE: GameCenter does not guarantee that callback blocks will be execute on the main thread. 2 // As such, your application needs to be very care阅读全文
posted @ 2012-04-11 09:43 不及格的程序员-八神 阅读(1608) 评论(0) 编辑
摘要: 1 dispatch_async(dispatch_get_global_queue(0, 0), ^{ 2 3 dispatch_async(dispatch_get_main_queue(), ^{ 4 ... 5 [self myMethod]; 6 7 }); 8 9 -(void)myMe阅读全文
posted @ 2012-04-10 11:19 不及格的程序员-八神 阅读(1064) 评论(0) 编辑
摘要: 开发的一款通用版程序由于the new ipad的出现,运行出现了不兼容现像。原有程序启动图片default.png,default@2x.png,default~ipad.png,出现启动画面偏移问题,解决方式添加default@2x~ipad.png.用xcode4.3版打开项目,调度运行项目,程序布局面目全非,用原来的xcode3.2版则没有问题。阅读全文
posted @ 2012-04-09 14:13 不及格的程序员-八神 阅读(272) 评论(3) 编辑
摘要: Technical Q&A QA1681Viewing iPhone-Optimized PNGsQ: When I build my iPhone OS application, Xcode optimizes the PNG files within my application's bundle, meaning that Preview can't display them. How can I view these optimized files?A:When I build my iPhone OS application, Xcode optimizes 阅读全文
posted @ 2012-03-21 09:39 不及格的程序员-八神 阅读(233) 评论(0) 编辑
共5页: 上一页 1 2 3 4 5 下一页