View and Layer help

I'm trying to make a simple program to help me learn layers that when a touch event happens a layer with a red bg color is created from the initialtouch point to the final. Here's my code so far for the touchmove method
CGPoint pt = [[touches anyObject] locationInView:self];
CGRect boundMe=CGRectMake(startLocation.x, startLocation.y, (pt.x-startLocation.x), (pt.y-startLocation.y));
addMe=[CALayer layer];
addMe.frame=boundMe;
CGColorSpaceRef rgbColorspace = CGColorSpaceCreateDeviceRGB();
CGFloat values[4] = {1.0, 0.0, 0.0, 1.0};
CGColorRef fml=CGColorCreate(rgbColorspace, values);
addMe.backgroundColor=fml;
[self setLayer:addMe];
However I keep on getting an error when i try to set the view(this is in a class which implements view) layer to the addMe layer. How do I do this?

I also tried moving thius code into the view controller class and I got it to atleast compile by using a UIView instead of a CALAyer but nothing is being drawn on the screen

Similar Messages

  • Posted a query got 296 views and no help :(

    reposting.... and praying for help/guidance/anything....
    Hi All,
    In the process of moving and BT Wholesale checker has now told me from ETA of Sept 30th to "At this time we cant provide a delivery date for this cabinet.."  for my new house (which is about 1 mile away but obviously a different cab)
    Checking Where and When website I get "UR" which means cabinet is "Under Review"
    As [email protected] doesnt work/exist anymore (?) I tried the fall back of roadworks.org and got this for what "appears" to be my local cabinet but I have no idea if it is "cabinet 40") or not :
    "Description : Replace 1 jointbox frame and cover(s) (915mm x 445mm) in Footway"  for Oct 1st - Oct 3rd
    Does anyone know if this is potential related ? ie. a good sign infinity is coming or standard maintence?
    Can anyone help with what else I can do to progress finding out what the UR is all about? General Slippage? Planning permisson? etc.
    Postcode is SM6 8BT
    All help is greatly appericated,
    frank.
    ps. output from checker :
    Solved!
    Go to Solution.

    from the checker results it does not appear your cabinet is included in the current openreach rollout - no FTTC.  you can try BDUK website
    if under review that could mean considering is it viable or is there a power supply or planning permission.
    the roudas sound like openreach are replacing the shell of the existing cabinet
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • I LOST MY TOOLBAR WITH 'VIEW' AND 'PRINT' - HELP!

    my main toolbar that allows me to change things disappeared.
    how do I restore it ?

    If it is the main menu bar, see the [[menu bar is missing]] article for details on restoring it.

  • Diff bt Help view and Maintanence view

    hi gem's
    i need the diff bt Help view and Maintanence view with example...............

    Hi
    The followings are different types of views:
    - Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    - Help View ( SE54)
    Help views are used to output additional information when the online help system is called.
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.
    Go thru this link plzz
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    - Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    - Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    1.Go to se11
    2. select view radiobutton and give a name
    3. Create
    4. select type of view you want to create. Such as database view.
    5. give short description
    6. give a table name such as mara
    7. press the pushbutton relationship. here you will find all the tables which are allowed to create view with mara.
    8. select one or mane tables.
    8 copy
    9.save , check and activate.
    Regards
    Anji

  • Difference among the Help view,Database view and Maintanance View

    hi,
    can Anyone pls let me know the Difference among the Help view,Database view and Maintanance View
    thanks&regards
    rama

    The followings are different types of views:
    Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    Help View ( SE54)
    Help views are used to output additional information when the online help system is called.
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.
    Go thru this link plzz
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    1.Go to se11
    2. select view radiobutton and give a name
    3. Create
    4. select type of view you want to create. Such as database view.
    5. give short description
    6. give a table name such as mara
    7. press the pushbutton relationship. here you will find all the tables which are allowed to create view with mara.
    8. select one or mane tables.
    8 copy
    9.save , check and activate.
    The followings are different types of views:
    Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    Help View ( SE54)
    Help views are used to output additional information when the online help system is called.
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.
    Go thru this link plzz
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    Go thru this link plzz
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    Hope this is helpful, Do reward

  • When we go for Views and Function Modules for Generic Extraction

    Hi Experts,
    Can you please explain when we go for extracting the data using Views and when we got using Function Modules using Generic Extraction from R/3 system to BW with examples. And also can you explain when we go for delta for the above both scenarios.
    Thanks for you help in advance
    Rohith

    Hi,
    Scenario for Extarction using FM
    Imagine the scenario where you need to extract data from
    tables having no common field between them and thereby preventing you from creating a view on top of those tables..
    Or simply consider tables that are highly unrelatd in terms of fields, but you have a requiremnt to extract data from them.
    Also Refer.
    create generic extractor based on 2 tables
    Generic Extraction via Function Module
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Steps.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    http://help.sap.com/saphelp_nw04/helpdata/en/86/1c8c3e94243446e10000000a114084/frameset.htm
    Scenario for Extraction using View
    If there are more number of tables and data in those tables can be represented using joins then we can use this type of extraction
    For more info Refer these links
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    For GEneric Delta refer these links
    [generic with delta;
    [https://forums.sdn.sap.com/click.jspa?searchID=11388803&messageID=5164737]

  • Since switching to Yosemite, I am unable to paste any information into calendar events, instead having to type out all info such as location, notes, etc.  This is true both in daily view and weekly/monthly views as well.  Help?

    Since switching to Yosemite, I am unable to paste any information into calendar events, instead having to type out all info such as location, notes, etc.  This is true both in daily view and weekly/monthly views as well.  Help?

    You welcome

  • PE 9 and 10 Help PDF Invalid List View Descriptions

    Bottom line: Has anyone reported on these problems, and, if so, what is being done about them?
    Until proven otherwise, I believe that Premiere Elements 9 and 10 Help PDF requires editing of its List View Descriptions which are appropriate for at least version 8.0/8.0.1, 7, and 4, but not versions 9.0/9.0.1 and 10.  Please refer to the Help PDF Projects/View Clip Properties
    for version 10:
    http://help.adobe.com/en_US/premiere...B-312BB3F13B11
    for version 9:
    http://help.adobe.com/en_US/Premiere...355c-7f98.html
    Problems in this regard for Premiere Elements later than version 8.0/8.0.1 and not for versions 8.0/8.0.1, 7, and 4:
    1. List View Properties display in text for export video file, no Data Rate Analysis graphs
    2. List View Columns, no ADD to add your own columns, so only Adobe built in ones, and none of the Adobe built in ones, like Client, allow for editable text.
    Comments:
    Data Rate Analysis
    I had read somewhere that these graphs appear for tape based rather than non tape based imports. Mini test: Premiere Elements MPEG4.avi import and DV AVI export of the MPEG4.avi. Results: Version 8.0/8.0.1 Properties for import in text format (file properties) only and Properties for export in text format (file + export properties) as well as display of Data Rate Analysis graph. Versions 9 and 10 Properties for import (file properties) and for export (file + export properties), both import and export text only.
    List View Columns
    1. If I look at the project.prel WordPad documents and the Client Column information there in each, I do not see any difference.
    2. If I create a Premiere Elements 8.0/8.0.1 project, set List View column choices Comments and Client, type in the comments and client information, and save/close/and re-open the project in:
    a. Premiere Elements 9.0/9.0.1, the Comments columns and its information will not appear; the Client column will appear, but its information will not be editable. (The 9.0/9.0.1 version does have Client, but not Comments, as a built in choice under Edit Columns)....the latter might explain why no Comments column except...
    b. Premiere Elements 10, neither the Comments nor Client columns and their information will appear. (The 10 version does have Client, but not Comments, as a built in choice under Edit Columns.)
    One of the Potential Problems:
    It is well accepted that, if you edit a project from an earlier version in a later version, you cannot go back to the earlier version for editing. So, one potential problem that I see in all this is the loss of this type of information on upgrading from 8.0/8.0.1 and earlier....
    a. If you create a Premiere Elements 8.0/8.0.1 or earlier project which includes Comments and Client information in these List View Column choices, you will lose all that information in version 10 and have only non-editable Client information in version 9.
    And, yes we have filed an Adobe Feature Request/Bug Form on this one.
    Any comments about what I may have overlooked in trying to get those Help PDF List View Descriptions to work for me would be appreciated.
    Thanks.
    ATR

    I definitely agree that the Help files could use some updating, Tony.

  • I have an old file with an .A4P video from 1999. I don't own any Adobe products (and don't really want to buy any). I just want to be able to convert the file to something that I can actually view. Any help?

    I have an old file with an .A4P video from 1999. I don't own any Adobe products (and don't really want to buy any). I just want to be able to convert the file to something that I can actually view. Any help?
    I was a kid when I made a documentary for a school project. I've been trying to figure out how to retrieve the file. 4 years ago, I was able to get the files off the Iomega Zip drive (finally), but I now see the file is saved as a .A4P. There is also a file saved as a .PKG as well, but I don't know how to open this with my Windows 8 COmputer.

    .a4p is an Authorware v.4 (Windows) project.
    Interesting you have it as a .pkg...usually that's a published-on-a- Mac extension, if I recall.
    At any rate, can you put the file up on a Box, Dropbox, FTP, etc...and send me a URL?
    I should be able to published it so you can view the project (it would be an .exe).
    It can't be converted to anything though - not without manual effort.

  • Need free OST viewer tool to help to view OST files without connecting to MS Exchange Server and MS Outlook.

    Need free OST viewer tool to help to view OST files without connecting to MS Exchange Server and MS Outlook.

    Hi Howard,
    As I know, Microsoft does not provide any kind of inbuilt tool or free software to only view OST file, even without the connectivity with exchange server (Offline).
    Try SysTools OST Viewer freeware which helps you to view all OST file save at your system in an easy way, whether you want to see the attachments or other items of OST file.
    Note: This is a free inbuilt utility, but try it on your own risk as I am not much aware about it and its working. But this tool sounds good according to your requirement and hopefully it would give you 100% satisfaction.
    Thanks
    Clark Kent

  • I sent a file to a friend and he can view one layer?

    I'm using a free trial version of illustrator and it has multiple layers. When I send it to a friend to open, he can only view one layer.
    Wondering what could be the issue?

    kkalbat,
    Is it the same version?
    If not, what happens if you downsave, Save a Copy choosing the lower version?
    If you have a higher version, your friend is most likely looking at the PDF part.

  • How to create Maintaince View and Help View

    Hi,
    Can u pls tell me the step by step procedure for how to
    create Maintaince View and Help View.
    And what's the use of these view's.
    Regards,
    Kumar

    FOR MAINTANENCE VIEW
    Create a table or a view in transaction SE11.
    A function group in SE80 transaction
    1>go to se54 transaction.
    2>give the name of the table /view starting from z.
    3>select "Generated Objects" radio button.
    4>click on "create/change" push button.
    5>you get a pop asking you whether to create modules ,click on YES
    6>give "authorization group" as temp.
    7>give the function group name created by you.
    8>click on "find Scr numbers "push button on the application tool bar.
    9>in the pop up that you get select the 1st option and press enter
    10>click on the create push button (it is beside "Find Scr numbers" push button)
    11>selct local object and pres enter.
    12>go to SM30 transaction.
    13>give the table/view name
    14>click on "maitain" push button.

  • [iPhone] Really struggling with views and transitions.  Please Help.

    Hello All,
    First off let me apologize; I've been trying to do this on my own, reading the docs and guides and such, but I just can not get this to work. I feel like once I understand this scenario I'll be able to learn the rest on my own.
    Basically I have a simple sample project structured as follows:
    MyAppDelegate: typical delegate class
    MainViewController: View controller object associated with the main view
    TitleViewController: View controller object associated with the title screen view
    NextViewController: View controller object associated with the second view (after title screen)
    I currently have 3 nib files, one each associated with MainViewController,TitleViewController, and NextViewContoller
    the Title View has a button on it
    The desired flow of the application is as such:
    1) My AppDelegate initializes MyViewController when it loads
    2) MyViewController contains the two other view controllers (they are instance variables in the class)
    and loads in the TitleScreen View (via addsubview).
    This works fine, I am having trouble with the following:
    3) The button on the title screen is pushed telling MyViewController to transition the TitleView out and the NextView in
    I have tried modifying the code from the Transition View app but its just too complicated for me at present and I can't get it to work.
    Can a kind soul out there please provide detailed assistance...maybe the implementation code for those 4 objects I mentioned.
    Maybe we can make some kind of tutorial or guide so that other people will find it useful as a precursor to diving into the Transition View Sample App?
    I think it would be interesting to have two versions of this well; one that uses nib files for each view and one that does it all purely programatically. This would definitely help newbies like me see how the nib approach is handled behind the scenes.
    Again, I apologize for my ignorance...I really am trying. Thanks.

    hi scotopia,
    i've gone thru that helpless state too, so i'm going to help you as much as i can
    the way i did it is slightly different from yours.
    on top of
    myAppDelegate,
    MainViewController, titleViewController, nextViewController (view controllers class)
    i have titleView and nextView (view class)
    and i did not use addsubview.
    inside main view controller you will need to create the titleviewcontroller and nextviewcontroller.
    and inside both titleviewcontroller and nextViewController, u need to create the rootViewController and their respective view objects, i.e. titleView or nextView.
    inside titleView you define all your methods etc. that will take place in that screen. and place your button code here.
    i've managed to trace my footsteps, and found out that the metronome sample code will be easier to understand.
    i hope this helps.

  • Wish to move auto cad drawing to adobe illustrator. Wish to take blue print and layer it for viewing.

    We have our drawings in auto cad and need to move them to adobe illustrator  and layer the drawing  for viewing on a web site.

    You can import certain versions of DXF/DXW files into Illustrator and also edit them.
    If this can be done efficiently depends on the nature of the files (number of paths etc.)
    You could download a trial version and try it on your files.

  • Just updated itunes now menu bar has dissapeared no black and white box at top left and ctr b does not bring anything up. i need file view etc please help driving me crazy

    just updated itunes now menu bar has dissapeared no black and white box at top left and ctr b does not bring anything up. i need file view etc please help driving me crazy

    Is the iTunes window in FullScreen mode?
    If so, press esc key.

Maybe you are looking for

  • Help please problem with export

    I had some problems with safari on my imac (OS X) so I did some "repairs" I ended up deleting some keychains and I believe that is what cause the problem I'm having. However I don't know how to fix it. When I try to export RAW images from my Lacie ru

  • DS and Messaging server relation

    Hi, I have a question here, I found out that my customer's DS has an extended schema, subBlacklist=yes or subBlacklist=no, where messaging server will determined whether to block this particular user from sending email if he has the attribute subBlac

  • Clicking on External Link in Safari Opens New Tab

    I think it has to do with one of the preferences I've set within Safari but I just can't put a finger on which one. Basically, I reinstalled Yosemite 10.10.3 on my MacBook Pro 13" (Late 2013) about a week ago. And then I tinkered with Safari preferen

  • How to install Soap on the (Apache) Oracle HTTP Server

    Hi, Does anyone know how to install SOAP on the Oracle HTTP Server? I downloaded a soap version (it seems that the standard version comes without SOAP) from the xml.apache.org site and followed the installation instructions as far as I could (only To

  • Iexpense Personal transactions

    Hello Guys, I have a problem with expense reports .Hope you can help. I've created expense report as expense type personal expense/cash advance along with all the other expense types. Once the report is created the transactions with personal expense/