Tag Archives: Apple

Autolayout: change constraint multiplier

the NSLayoutConstraint multiplier property is read-only. But if you need to change it, you can replace the constraint with a modified clone like @implementation NSLayoutConstraint(ChangeMultiplier) // visal form center http://stackoverflow.com/a/13148012/349514 -(NSLayoutConstraint *)constraintWithMultiplier:(CGFloat)multiplier { return [NSLayoutConstraint constraintWithItem:self.firstItem attribute:self.firstAttribute relatedBy:self.relation toItem:self.secondItem attribute:self.secondAttribute multiplier:multiplier constant:self.constant]; } @end@implementation NSLayoutConstraint(ChangeMultiplier) // visal form center http://stackoverflow.com/a/13148012/349514 -(NSLayoutConstraint *)constraintWithMultiplier:(CGFloat)multiplier { return [NSLayoutConstraint […]

iPhone: libxml2 & RELAX NG validation

Having a validating parser in place can reduce the required code to parse XML a lot – you know very well what you actually get. As mentioned in my last post about RELAX NG & trang, I prefer RELAX NG over W3C XML Schema – which doesn’t matter anyway because Apple’s suggested XML parser doesn’t […]

Markerloses Mocap

Heise schreibt heute wieder mal was zum Thema: Apple will Bewegungserkennung als Nutzerschnittstelle patentieren lassen. Wer sich für die Patentschrift interessiert, kann sich mit diesem bash-Script (benutzt wget und Imagemagick) ein PDF bauen:

Apple Patent Application „Swipe Gestures for Touch Screen Keyboards „

E.g. golem reports a new patent application concerning touch screens. As the US patent office website does only provide somewhat hard to handle TIFFs, I provided a bash script to download and convert them into one single pdf: Download and pdfify US Patent Application 20080316183.