iOSçµã¿è¾¼ã¿ã®ãã£ãã·ã¥ã¢ã¸ã¥ã¼ã«NSCacheã«ã¤ãã¦çºè¡¨ãã¾ãã - ninjinkun's diary @k_katsumi ãã£ãã·ã¥ãåããæ¹ã®ã¯ããããããã¦è¯ãã§ãããå¾ããèªã人ã®åèã«ãªããããªã®ã§ãURL 㨠URL ã®çºè¨ãããã°ã«å¼ç¨ããã¦ããã ãã¦ãè¯ãã§ããããã 2012-03-26 16:42:44 via web to @k_katsumi @ninjinkun ã¯ãããã²ãã²ã¼ããã£ãããªã®ã§ä¾¿ä¹ãã¦åããã¤ã使ã£ã¦ãç»åãã£ãã·ã¥ã®ã³ã¼ããå ±æããããã¦ã¿ã¾ãã 2012-03-26 16:45:05 via YoruFukurou to @ninjinkun @k_katsumi ããããã¯æ¥½ãã¿ã§ãï¼ãã®æã®ãã®ã¯ã¿ããªç¬èªã«ä½ã£ã¦ãæãã ã¨æãã®ã§ãåèã«ããã¦ããã ãããã§ãã¼ã 2012-03-26 16:48:23 via web to
Mac OS X ç¨ãã¤ããªã¨ãã£ã¿ã 0xED ãã¡ã¤ã«ã®ä¸èº«ã詳細ãè¦ãã®ã¯ãã¡ãããããã¹ãã®æ¹è¡ã³ã¼ããã¡ãã£ã¨ç¢ºèªãããæã«ãå½¹ç«ã¤ãPNGãJPEGãªã©ç»åãã¡ã¤ã«ã®ãããæ å ±ãè¦ãã®ã«ãéå®ãããã PNGãéãã¨ãããªæãã ã¨ãã£ã¿ãªã®ã§ãã¡ããå¤...
æ¨æº SDK ã§æä¾ããã¦ããã¯ã©ã¹ãã©ãããæ§é ã«ãªã£ã¦ããåèã«ãããã¨ããã¡ãã£ã¨ããã«ã¹ã¿ãã¤ãºããããã¨ããããããã¨ãã«ãã¥ã¼æ§é ããã³ãããããããã¨ã¯ããããã¨æãã¾ãã ä¸è¨ã®ãããªã¡ã½ãããæ¸ãã¦ãããã®ã§ãããå®ã¯ UIView ã«ã¯ä¾¿å©ãªã¡ã½ãããæä¾ããã¦ãã¾ãã - (void)explode:(id)aView level:(int)level { doLog(level, @"%@", [[aView class] description]); doLog(level, @"%@", NSStringFromCGRect([aView frame])); for (UIView *subview in [aView subviews]) { [self explode:subview level:(level + 1)]; } } ããã次ã®ï¼ã¤ã§ããrec
NSNotification ã®éç¥ã¯ãå¥ã¹ã¬ããããå¼ã¶ã¨ããã®ã¹ã¬ããã§å®è¡ãããã®ã§ãéç¥ãåã㦠UI ãæ´æ°ãããããªå ´åãé½åãæªããã¨ãããã¾ãã ï¼UIKit 㯠Thread Safe ã§ãªãããï¼ ããããã¨ãã¯ãä¸è¨ã®ããã«ã¡ã¤ã³ã¹ã¬ããããéç¥ããã¨ããã¨æãã¾ãã NSNotification *notification = [NSNotification notificationWithName:NOTIFICATION object:self]; [notificationCenter performSelector:@selector(postNotification:) onThread:[NSThread mainThread] withObject:notification waitUntilDone:NO];
ã¡ã¢ãªç®¡çãç解ããï¼å¾ç·¨ï¼ï¼Cocoaã®ç´ ãObjective-Cãç¥ããï¼8ï¼ï¼1/2 ãã¼ã¸ï¼ iPhoneç¨ã¢ããªã±ã¼ã·ã§ã³éçºã§æ³¨ç®ãéããè¨èªãObjective-CããC++ã¨ã¯ç°ãªãCè¨èªã®æ¡å¼µãç®æãããã®è¨èªã®åºæ¬ãç解ãããï¼ç·¨éé¨ï¼ ã¡ã¢ãªã®retainãreleaseã®å®ç³ ååãã¡ã¢ãªç®¡çãç解ãããã§ã¯ããªãã¸ã§ã¯ãã®ææ権ã®åå¾ã¨è§£æ¾ã®åºæ¬çãªä»çµã¿ã«ã¤ãã¦èª¬æãã¾ããã ããã§ç´¹ä»ãããããªããã·ã³ãã«ãªããã°ã©ã ã§ããã°ãã©ãã§retainããã©ãã§releaseãããã«ã¤ãã¦ãã¾ãè¿·ããã¨ã¯ãªãã§ãããã ããããä¸è¬çãªã¢ããªã±ã¼ã·ã§ã³ã®è¦æ¨¡ã«ãªãã¨ãå¤ãã®ã¯ã©ã¹ããªãã¸ã§ã¯ããè¤éã«é¢ãã£ã¦ãã¾ãããããããå¤äººæ°ã§åæ ãã¦éçºããå ´åãããã¾ãã ãããªãã¨ãreleaseãå¿ãã¦ä¸è¦ãªãªãã¸ã§ã¯ããã¡ã¢ãªä¸ã«æºã¾ã£ã¦ãããã¡ã¢ãªãé£ãã¤ã¶ãã¦ã
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
With Christmas just around the corner we have been looking for ideas for DIY decorations. Christmas is the perfect opportunity to practice your artistic skills. ⦠Read the Rest The assault bike is, to some, the ultimate torture machine â gruelling assault bike workouts push your physical limits to the max. When pedalling flat out, it leaves even the fittest of users without breath â but thatâs exa
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
ç¡çºç©ºé ãããã(´Ïï½*) Entries NSOperationQueueã¨ã¹ã¬ããã®é¢ä¿ ã¿ã°: Objective-C Mac NSOperation NSOperationQueueã使ã£ãããã°ã©ã ããããã°ãã¦ãã¦ãµã¨æ°ä»ããã®ã ããNSOperationQueueã¯ä½ãã¯ã½çé¢ç®ã«ãconcurrentã§ã¯ãªãå ¨ã¦ã®operationã®ããã«æ¯åã¹ã¬ãããä½ã£ã¦ãããããã§ã¯ãªããããã ä¾ãã°ä»¥ä¸ã®ã³ã¼ãã @interface Operation : NSOperation { int number; } @property (nonatomic) int number; @end @implementation Operation @synthesize number; - (void)main { [NSThread sleepForTimeInterval:1]
ãã¦ã¹ã¤ãã³ãã®å¦çãè¡ãããã°ã©ã ãä½æããã ããã¸ã§ã¯ãã®ä½æ Xcodeã§ãMouseExãã¨ããååã®Cocoa Applicationããã¸ã§ã¯ããä½æã ãHelloWorldãã¨åæ§ã«ãMouseView.h/MouseView.mããä½æã ãHelloWorldãã¨åæ§ã«ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ä½æã ã½ã¼ã¹ã³ã¼ãã®è¨è¿° MouseView.h #import <Cocoa/Cocoa.h> //MouseEx(View) @interface MouseView : NSView { NSPoint _mousePos; //ãã¦ã¹ä½ç½® BOOL _mouseDown; //ãã¦ã¹ãã¦ã³ NSTrackingRectTag _tag;//ãã©ããã³ã°ã¿ã° } //æååã®æç» - (void)drawString:(NSString*)string x:(float)
iphone - How to scale a UIImageView proportionally? - Stack Overflow @interface UIImage (Extras) - (UIImage *)imageByScalingProportionallyToSize:(CGSize)targetSize; @end; @implementation UIImage (Extras) - (UIImage *)imageByScalingProportionallyToSize:(CGSize)targetSize { UIImage *sourceImage = self; UIImage *newImage = nil; CGSize imageSize = sourceImage.size; CGFloat width = imageSize.width; CGF
Please note: this article is part of the older "Objective-C era" on Cocoa with Love. I don't keep these articles up-to-date; please be wary of broken code or potentially out-of-date information. Read "A new era for Cocoa with Love" for more. It is really easy to customize your UITableViews. I'll show you how to completely customize the appearance of UITableViews without overriding or subclassing a
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
ç¡çºç©ºé ãããã(´Ïï½*) Entries CFArrayã¯ç°ç¶ãããã¡ã§ã¯ãªã ã¿ã°: Objective-C è¨äºãNSMutableArrayã¯ç°ç¶ãããã¡ãã®ç¶ãã ãªããNSMutableArrayã¯ã©ã¹ãçæãããªãã¸ã§ã¯ãã¯å®éã«ã¯NSMutableArrayã®ãµãã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã§ã大æµã¯CFArrayã¨ç価ãªNSCFArrayã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã§ããã ããã«ååè¨äºè¡¨é¡ã®ãNSMutableArrayãããå³å¯ã«ã¯ãNSCFArrayãããCFArrayãã«ãã¹ãã§ããã ãã¦ããCFArrayãã®è¨ç®éã«ã¤ãã¦ã ããããã¯ã¡ããã¨ADCã®æ¹ã«è³æããã£ãã Collections Programming Topics for Core Foundation Xcodeã®ãã«ãã§ãCollections Programming Topics for Cocoa
ã¡ãã£ã¨å¿ è¦ã ã£ãã®ã§ä½ãã¾ããã CoreGraphicsã使ã£ã¦ãæå®ããCGRectã®ä¸ã«ãæå®ãã太ãã®Ãå°ï¼Cross Signï¼ãæç»ããããã®Pathãçæãã¾ãã 1 void PDPathAddCrossSign(CGMutablePathRef path, CGRect rect, CGFloat thickness) 2 { 3 CGFloat diff = rect.size.width - rect.size.height; 4 rect = CGRectDeflateRect(rect, MAX(0, diff/2), MAX(0, -diff/2)); 5 CGFloat radius = rect.size.width/2; 6 CGFloat d = sqrt(2)*thickness/2; 7 CGFloat cx = CGRectGetM
UIViewã«ã¯ã¢ãã¡ã¼ã·ã§ã³é¢é£ã¡ã½ãããç¨æããã¦ããã®ã§ããæ軽ã«ã¢ãã¡ã¼ã·ã§ã³ãå®è¡ãããã¨ãã§ãã¾ãããã¿ã³ãã©ãã«ãç»åãªã©ã¯å ¨ã¦UIViewãç¶æ¿ãã¦ããã®ã§åºæ¬çã«å ¨ã¦åãæ¹æ³ã§å®è¡å¯è½ã§ãã ã¾ãã¯UIViewã®åæåã¡ã½ããã§UIButtonãçæãã¦Viewã«è¿½å ãã¦ããã¾ãããã®ãã¿ã³ãæ¼ãããã¨@selector()ã§æå®ãã¦ããã¡ã½ãããå¼ã°ããã®ã§ãããã§ã¢ãã¡ã¼ã·ã§ã³ãå®è¡ãã¾ãã - (id)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { self.backgroundColor = [UIColor whiteColor]; // button UIButton *btn= [UIButton buttonWithType:UIButtonTypeRounde
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}