Тег ‘iOS’:
Рубрики: iOS, iPad, iPhone on Jan.30, 2012
Create movie from images seq. First part of method, initialize 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950- (void) writeImagesAsMovie:(NSArray *)array toPath:(NSString*)path { NSString *documents = [NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex: 0]; documents = [documents stringByAppendingPathComponent:currentWorkspace]; //NSLog(path); NSString *filename = [documents stringByAppendingPathComponent:[array objectAtIndex:0]]; UIImage *first = [UIImage imageWithContentsOfFile:filename]; [...]
Теги: AVAssetWriter, AVAssetWriterInput, AVCaptureDeviceInput, AVCaptureVideoDataOutput, AVFoundation, iOS, QuartzCore, Video
Рубрики: iOS on Jan.27, 2012
UIBezierPath is a convenient object for creating rounded-rectangular shapes. Starting from 3.2, this class becomes public, but the interface is dramatically changed to match that of NSBezierPath. 12345678910-(void)drawRect:(CGRect)rect { UIBezierPath* roundedRect = [UIBezierPath roundedRectBezierPath:CGRectInset(rect, 5, 5) [...]
Теги: CALayer, iOS, NSBezierPath, rounded-rectangular, UIBezierPath
Рубрики: iOS on Jan.24, 2012
I create simple project for iOS, “One minute”. This project create video from photos on iOS device. Results of app:
Теги: AVAssetWriter, AVAssetWriterInput, AVCaptureDeviceInput, AVCaptureVideoDataOutput, AVFoundation, iOS, QuartzCore, Video
Рубрики: iOS on Jan.04, 2012
Enable MSAA Anti-Aliasing in GLKit. Just enable: 12GLKView *view = (GLKView *)self.view; view.drawableMultisample = GLKViewDrawableMultisample4X; Without MSAA: With MSAA: GLKit_MSAA_Sample
Теги: Anti-Aliasing, GLKit, GLKView, iOS, MSAA, OpenGL
Рубрики: iOS, iPad, iPhone, OOP on Dec.22, 2011
My simple solution by writing category for UIImageView, because scroller is imageview. How to use :) Just setup tag for your scrollview and you will get one with scroll indicators, which are shown all the time. 1234567891011121314151617181920212223242526272829303132#define noDisableVerticalScrollTag 836913 #define noDisableHorizontalScrollTag 836914 @implementation UIImageView (ForScrollView) – (void) setAlpha:(float)alpha { if (self.superview.tag [...]
Теги: Category, iOS, iPad, iPhone, objective-c, OOP, pattern, scroll, UIImageView, UIKit, UIScrollView
Рубрики: Apple, iPad, iPhone, Mac OS X on Dec.17, 2011
I tried create loop by AVQueuePlayer, this method has delays between end and start play. for looping AVQueuePlayer i use this code: 123456[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playerItemDidReachEnd:) [...]
Теги: AVFoundation, AVMutableComposition, AVPlayer, AVPlayerActionAtItemEndNone, AVPlayerItem, AVPlayerLayer, AVQueuePlayer, AVURLAsset, iOS, NSNotificationCenter
Рубрики: Apple on Nov.08, 2011
I have this text: 1word1 word2 " word3 //" word4 I wrote simple solution. I know it can be better. I know about Back Reference, but i don’t have experience with it. 123456789101112131415161718192021222324252627282930313233NSRegularExpression *expression = [NSRegularExpression regularExpressionWithPattern:@"((@\"|\").*?(\"))" [...]
Теги: iOS, Mac OS X, matchesInString, NSRegularExpression, objective-c, OOP, RegExp, regexpal, regularExpressionWithPattern, Xcode, Кодинг
Рубрики: others on Nov.06, 2011
Now we have controller for creating events. This controller included from 4.0 iOS SDK. SimpleEKDemo The application uses table views to display EKCalendar object and EKEvent objects retrieved from an EKEventStore object. It implements EKEventViewController for viewing and editing existing EKEvents, and uses EKEventEditViewController for creating new EKEvents.
Теги: EKCalendar, EKEvent, EKEventStore, EKEventViewController, iOS, iPad, iPhone, objective-c, UI, UIKit, UITableViewController
Рубрики: others on Nov.05, 2011
DDProgressView is a custom progress view à la Twitter for iPhone. DDProgressView works on both iOS and Mac OS. You must also compile the AppKitCompatibility.m file when targeting Mac OS. Thanks, Damien DeVille!
Теги: Apple, github, iOS, Mac OS X, OOP, UI