Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-22-2009, 03:55 PM   #1 (permalink)
New Member
 
Join Date: May 2008
Posts: 49
David H Dennis is an unknown quantity at this point
Default CALayer AnchorPoint missing?

Apple's documentation tells me that if I have a UIView, it has a corresponding Layer property:

UIView *v = ...

v.layer

and the layer property has an anchorPoint property:

v.layer.anchorPoint

but when I try

v.layer.anchorPoint = CGPointMake(0, 0);

anchorPoint is an "Unknown component of a property". It doesn't work either when I say

CALayer *l = v.layer;
l.anchorPoint = CGPointMake(0,0);

and yet there are several examples on the net and Apple's documentation that show that I should be able to do exactly this.

Any idea what I'm going wrong? It seems like something I'm trying to do should be ridiculously easy but this has left me completely baffled.

Many thanks for any help.

D
David H Dennis is offline   Reply With Quote
Old 01-22-2009, 04:20 PM   #2 (permalink)
New Member
 
Join Date: May 2008
Posts: 49
David H Dennis is an unknown quantity at this point
Default

Solved my own problem!

Just in case someone else runs into this - I had to include <QuartzCore/QuartzCore.h> . A bit confusing but there you are.

D
David H Dennis is offline   Reply With Quote
Old 04-30-2011, 06:23 PM   #3 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 147
Tex-Twil is on a distinguished road
Default

Quote:
Originally Posted by David H Dennis View Post
Solved my own problem!

Just in case someone else runs into this - I had to include <QuartzCore/QuartzCore.h> . A bit confusing but there you are.

D
thanks, I just had the same problem
Tex-Twil is offline   Reply With Quote
Reply

Bookmarks

Tags
anchor point, anchorpoint, core animation, coreanimation, uiview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 419
17 members and 402 guests
Atatator, chiataytuday, condor304, dre, FrankWeller, imac74, ipodphone, jeroenkeij, kukat, LunarMoon, MAMN84, n00b, PowerGoofy, QuantumDoja, Retouchable, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,675
Threads: 94,124
Posts: 402,909
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Retouchable
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:02 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0