Changing bounds origin of UIView has no effect

I try to pan/scroll a big image(500x500) in a small frame (200,200) like in Google Maps. Changing bounds origin of UIImageView has no effect. The same part of image is displayed by the view.
IBOutlet UIImageView *image;
-(void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event
CGRect bounds=[image bounds];
bounds.origin.x=bounds.origin.x+10;
bounds.origin.y=bounds.origin.y+10;
[image setBounds:bounds];
Does anyone have any idea what is wrong?

Ok, I found out what's wrong.
To "pan" an image you have to change bounds origin of PARENT view.
- (void)applicationDidFinishLaunching:(UIApplication *)application {
CGRect viewRect = CGRectMake(50, 50, 100, 100);
UIView* myView = [self createView:viewRect withColor:[UIColor redColor]];
UIView* childView = [self createView:CGRectMake(0, 0, 50, 50) withColor:[UIColor blueColor]];
[myView addSubview:childView];
[window addSubview:myView];
myView.clipsToBounds=TRUE;
myView.bounds=CGRectMake(45, 45, 100, 100);
[myView release];
[childView release];
[window makeKeyAndVisible];
-(UIView*) createView:(CGRect)viewRect withColor:(UIColor*)color
UIView* myView = [[UIView alloc] initWithFrame:viewRect];
myView.backgroundColor=color;
return myView;
}

Similar Messages

  • Changing a mobile users password has no effect

    Hi!
    Changing a mobile account users password on the server doesn't work. On a 10.7.4 server I changed a network user's password, who has a mobile account and was connected to the local network, but he could not log in with either the old or the new password?!?!? I could understand if the change didn't work if the user was off site, but shouldn't this "just work"? I tried both in Server.app and WGM, but still not working. When setting the old password on the server again, it worked!
    Anyone else had this problem? Any solutions. It has happened to 2 users, same story. Clients are 10.6.8 clients.

    Ok, I found out what's wrong.
    To "pan" an image you have to change bounds origin of PARENT view.
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    CGRect viewRect = CGRectMake(50, 50, 100, 100);
    UIView* myView = [self createView:viewRect withColor:[UIColor redColor]];
    UIView* childView = [self createView:CGRectMake(0, 0, 50, 50) withColor:[UIColor blueColor]];
    [myView addSubview:childView];
    [window addSubview:myView];
    myView.clipsToBounds=TRUE;
    myView.bounds=CGRectMake(45, 45, 100, 100);
    [myView release];
    [childView release];
    [window makeKeyAndVisible];
    -(UIView*) createView:(CGRect)viewRect withColor:(UIColor*)color
    UIView* myView = [[UIView alloc] initWithFrame:viewRect];
    myView.backgroundColor=color;
    return myView;
    }

  • Change of Min Pool Size has no effect?

    Hi, we are still using odp 9.2.0.4 on windows server 2003 webserver and oracle database 9i on Sun solaris. Recently we discovered a problem using Min Pool Size = 1, it seems that if new connections are required we sometimes get a connection timeout. So we decided to set Min Pool Size = 30, and on the testserver this works fine. In the odp tracefile (tracelevel=2) you see the 30 connections building up immediately. But on the production server we see no difference, it looks like the (new installed, application pool reset) application still uses the Min Pool Size = 1 setting.
    The connection string is build up in application code. On the testserver it was sufficient to stop and start the website and its application pool, on the production server this has no effect.
    Does anyone have an idea what the problem is??? We also tried restarting the IIS server, that did not help either. In production there are more applications using ODP.
    Regards, Paul.

    What problem are you trying to solve at this point? Simply "why is odp not tracing?" The only suggestions I really have there are
    1) make sure you restart the app after enabling tracing parameters
    2) make sure the directory you've set tracing to is open as far as permissions
    3) make sure you've set tracing in the right registry setting if you have multiple versions of ODP installed
    4) if you're trying to write to c:\ root, try creating and pointing to a different (c:\odptrace for example) directory instead.
    Hope it helps,
    Greg

  • Changing formsettings via UI-Api has no effect

    Hy Everyone!
    I try to modify the FormSettings via the UI-Api. (show and hide Columns in a matrix)
    The Collumns are still visible also if i set all -> VisibleInForm = tNo.
    The only way to see an effect was to close and restart SBO, then open the form again.
    Does anybody knows a way to change the FormSettings so that i can open a certain
    Form without closing SBO first and have all the collumns visible or invisible?
    Here is my code, it only works with close and reopen SBO....
        Dim oCmpSrv As SAPbobsCOM.CompanyService
        Dim oFormPreferencesService As FormPreferencesService
        Dim oColsPreferences As ColumnsPreferences
        Dim oColPreferencesParams As ColumnsPreferencesParams
        Dim oColsPreferencesXmlFile As ColumnsPreferences
        Dim i As Integer
        'get company service
        Set oCmpSrv = oSBC.oDICompany.GetCompanyService
        'get Form Preferences Service
        Set oFormPreferencesService = oCmpSrv.GetBusinessService(ServiceTypes.FormPreferencesService)
        'get Columns Preferences Params
        Set oColPreferencesParams = oFormPreferencesService.GetDataInterface(FormPreferencesServiceDataInterfaces.fpsdiColumnsPreferencesParams)
        'set the form id (e.g. A/R invoice=133)
        oColPreferencesParams.FormID = "149"
        'set the user id (e.g manager= 1)
        oColPreferencesParams.User = oSBC.oDICompany.UserSignature
        'get the Columns Preferences according to the formId & user id
        Set oColsPreferences = oFormPreferencesService.GetColumnsPreferences(oColPreferencesParams)
        'change the width of all the visible items
        For i = 0 To oColsPreferences.Count - 1
            'check if the item is visible
            'If oColsPreferences.Item(i).VisibleInForm = BoYesNoEnum.tYES Then
                'set the width of the item
                oColsPreferences.Item(i).VisibleInForm = tYES
                oColsPreferences.Item(i).VisibleInExpanded = tYES
                oColsPreferences.Item(i).EditableInForm = tYES
                'oColsPreferences.Item(i).Width = 150
            'End If
        Next
        oFormPreferencesService.UpdateColumnsPreferences oColPreferencesParams, oColsPreferences

    Hi Andreas,
    This behavior is "by design":
    The preferences are loaded during B1 start - and cached until it is closed...
    Sorry,
    Frank

  • Changing default interface font size has no effect

    Just setup my shiny new iMac with 5K retina display.  Images in Lightroom, of course, look stunning on the display. Problem is that all the interface elements are now displayed at a very small size.  I've tried setting the font size in Preferences/Interface to "Large", but nothing changes.  Any suggestions?  With the increasing use of 4K and now 5K displays, I'd think being able to set a more easily readable font size for the interface elements (while still displaying images in all they retina-resolution goodness) would be an important option to have.  Thanks.,

    Lightroom 5 the font sizes changed to Small, Medium, Large 150% and Largest 200%  (the last one is what you want for QHD displays.)
    LR4 only had 3 font size choices (Auto,Small and Large) and does not support QHD/4K displays.

  • Pan has no effect when routed to a bus/Aux anyone have a clue?

    I am out putting vocals through to a bus for processing and noticed that when i pan the original track it has no effect - the signal stays centred.. I have tried finding a previous post on this and cannot find one... does anyone know why this is happening???

    Hey, I think I have it. Just reading your posts and trying something I think the "solution" might be this:
    As one could find logical, only the last bus of a chain can be panned, to avoid conflicts like a bus left panned is routed to a bus right panned. Of course you can pan either the main output, but has no sense. I have e.g a "flute" channel strip routed to "woods" bus, this one routed to "pre-mix" bus, and this one routed to main output. If I delete or re-route buses, always the last before main out can be panned, whatever it be. I've rearranged my routings thru sends, not via direct outputs and now I'm able to pan my flute!.
    Hope this can help.
    cheers

  • Remote content bar does not appear for some emails with images specifically daily Twitter updates. Changing options to allow all remote content has no effect

    The broken image symbol appears in place of the images but associated web links do work ok.
    Changing options to allow all remote content has no effect. Senders' addresses are in my address book and on the exceptions list.
    Some emails (from other sources) load perfectly. Using Kaspersky Internet Security 2015 on Windows 8.1. Thunderbird 31.4.0
    Any help appreciated.

    You only need to post a URL to your web site. We can see your code in Browser.
    So, your page looks OK to me in Firefox, but when I tried to check it in IE, it choked my browser and closed it.
    You have quite a few code validation errors - no document type declaration, etc... Start by fixing these reported errors.
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fntp.neuroscience.wisc.edu%2F
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Wrong Channels Being Mapped for 5.1 - Changing Has No Effect.

    I just setup a new edit suite using a Blackmagic Decklink Extreme 3D Card, running on a PC with Windows 7.
    Initially my 5.1 channel mapping required altering in Premier to get the correct output to the correct speakers but once sorted all worked great.... until today! For some reason no matter what I do some of the channels are now mixed up, and changing the mapping preferences has no effect. I am getting the Centre channel coming from the Rear Right and Rear Left is coming out of the Sub! I have my preferences set to output from the BlackMagic Audio Device, but even swapping left and right channels has no effect.
    If I flick over to Audition and map the channels for a 5.1 mix it works fine and has the correct output which I guess rules out a problem with the DeckLink. This is REALLY frustrating me, any suggestions or advice on what could be the issue with premier would be greatly appreciated!

    Moderator advice: Please read the announcement(s) at the top of the forum listings and the FAQ linked from every page. They are there for a purpose.
    Then edit your post and format the code and CSS correctly.
    db

  • My Daughter changed her Apple ID, not sure why. Then she changed it back to the original. She has lost $50 on her iTunes. How does she restore the funds?

    My Daughter changed her Apple ID, not sure why. Then she changed it back to the original. She has lost $50 on her iTunes. How does she restore the funds?

    Tank 64 wrote:
    My Daughter changed her Apple ID, not sure why. Then she changed it back to the original. She has lost $50 on her iTunes. How does she restore the funds?
    How did she change her AppleID?
    If she simply updated the AppleID (not created a new one with a new email address), log out then log back into iTunes store.

  • I have a iMac 21,5" Intel mid 2011 and I need to know if is possible I change the original 500Gb HD for a 512Gb SSD? If yes, where I find a tutorial about this? Thanks a lot and best regards all.

    Hi people,
    I'm typing from Brasil, sorry my English.
    I have a iMac 21,5" Intel mid 2011 and I need to know if is possible I change the original 500Gb HD for a 512Gb SSD?
    I intend to keep the original DVD driver and install the SSD in the same HD place.
    If yes, where I find a tutorial about this?
    And I will like to know if the 512GB Solid-State Drive Kit for Mac Pro is compatible with iMac.
    http://store.apple.com/us/product/MC731ZM/A/512gb-solid-state-drive-kit-for-mac- pro?fnode=5f
    What brand and model of SSD do you recommend?
    Thanks a lot for now and best regards all.
    Carlos Sgrillo
    Porto Alegre, RS, Brasil

    Tukaine
    Sep 23, 2012 10:59 PM
    Since the late 2009 iMacs came out, replacing the hard drive has caused the internal Hard Drive Fan to start running at around 6000RPM.
    This is due to Apple replacing the external Hard Drive temperature sensor with a proprietary firmware and using the drives internal sensor.
    Replacement drives do not contain the firmware to deliver temperature data on the temperature sensor cable.
    When the iMac does not receive a good signal from the hard drive it puts the fan at full speed to protect the drive.
    If you replace your drive, your iMac will initially seem fine, but soon the fan will begin to speed up to full speed. Resetting the SMC (System Management Controller) will have a temporary effect, but again the fan will speed up.
    Fixes people have used in the past included:
    Using smcFanControl and the terminal to set a MAX speed for the fan and writing scripts to start this after every sleep/restart.
    Shorting the temperature sensor cable (Not a possibility on 2011 iMacs) this tricks the iMac into thinking the drives temperature is very low, hence slow fan speed.
    Both these fixes are less then perfect and leave the drive in a dangerous situation with no protection from overheating.
    Another option people try is other Fan Control software. These programs will not work for this particular issue as they often only control the base speed, and if they do control the fans actual speed they rely on the temperature reported by the sensor which is now incorrect.
    HDD Fan Control
    HDD Fan Control works to fix this issue by reading the drives internal temperature using the S.M.A.R.T protocol and set the fans actual speed to a value good to protect the drive.
    It runs at startup and continually to always control the fan correctly, prevent the loud fan noise and protect the drive from overheating
    Instead of HDDFan Control, get the free SSDFan Control
    http://exirion.net/ssdfanctrl/

  • Bounding Boxes (Importing Photoshop to After Effects)

    Hey, I'm sorry if this is a stupid question and it seems like (hopefully) it's a one click easy fix but here goes.
    When I import Photoshop files into After Effects the bounding boxes around the orignal grouped layers are the size of the project itself. To clarify the pre-existing layer "groups" in Photoshop that were converted to "compositions" in After Effects upon importing, all have bounding boxes that extend out to the dimensions of the entire project. When I click into the composition the layers have bounding boxes that mold to the layer size. I need the group/composition bounding box to extend to only the dimensions of the subsequent layers not the entire project. When I was using After Effects CS6 it reduced the bouding box of my group/compositions to the minimalist possible extent automatically. Now that I've been forced over to After Effects CC (on account that I use creative cloud) the bounding boxes are no longer conforming to the groups in the same manner.
    I of course can find away around this by merging the groups and what not but I don't want to have to do that and I'm hoping there a little freaking check box or something that I'm not aware of. I don't know if this matters but I am using Windows 7 64bit. Any help is greatly appreciated.

    Yeah this problem never got officially resolved. For some reason they changed this in CC version of After Effects but as you said it was never like that in previous versions (at least it wasn't in CS6).
    There are a couple of 'work-around' options for this problem but as I'm no expert I couldn't say whether these 'options' are the best way to handle this problem or not, just the best that I can come up with in my relatively limited experience and there are pros and cons to each... It also depends on what type of project you're working on. Anyway:
    1) Go into your composition/group in After Effects and use the "Crop Region of Interest" function. This will readjust the bounding box to that composition but you'll need to resituate your composition so that it's in the right place as cropping the region of interest stupidly seems to moves it.
    2) Create Null Objects and parent one of them to each moving composition. Situate all Null Object layers above your composition layers so each one is clickable
    3) Create a special "group" in the Photoshop file you're working in and -copy- all of the layers in that Photoshop file into the new group that you just created. Merge all of the layers together that are meant to be a single moving object in After Effects. This will leave your original layers intact and when you import the PSD file into After Effects you'll have the merged layers you need that will automatically have appropriate bounding boxes.

  • Widescreen setting in video - tv out has no effect

    after a couple of hours of experimentation, i have concluded that the widescreen setting (on/off) in the tv out section of the video settings has no effect. i believe what it SHOULD do is adjust the signal to display properly on a widescreen (16x9) tv. i believe it does nothing. video displays stretched and squashed (photos too btw). this is after experimenting with the same itunes-purchased and non-itunes purchased videos on both my ipad and my iphone 3gs, using the same tv and the apple component av cable. the iphone works fine. the only way to get a semi-acceptable display on the tv with the ipad is to the set to tv to normal 4x3 display. (late model sony lcd hdtv). then you get thick black bars around the picture. with the iphone i can leave the tv display setting at it's regular "full" option and the picture fills the screen properly. i tried both sd and hd videos on the ipad. (sd only on the iphone obviously). does anyone else have this issue? is there a bug in the ipad software? is there a problem with MY ipad? will a software restore help?
    Message was edited by: Michael Rosenberg

    i tried a fair amount of stuff. here's 2 examples:
    1) itunes store copy of an episode of the office in both hd and sd.
    2) digital copy of the new star trek movie
    so the first is 16x9 and the second is a widescreen movie 2.35-1.
    both look fine when playing back off the iphone 3gs (sd copy of the office). both looked stretched horizontally and squashed vertically when playing off the ipad. note that everything looks fine on the ipad itself. it just messed up when connecting
    the ipad to my tv. in all cases, the widescreen setting in the tv out section of the video panel on the ipad has NO effect.
    i can change the screen settings ON THE TV to fix the distortion but then i end up with thick black bars on all 4 sides. and i don't need to do this with the iphone 3gs. i continue to believe something is wrong with the ipad (or MY ipad).

  • ADF Faces 10.1.3.0.4 - two-digit-year-start has no effect?

    Hi all,
    I have problem with entering date with an af:selectInputDate control:
    the user enters the date and on an onblur event, the adf field
    automatically reformats it:
    10.10.10 ->10.10.2010
    10.10.60 ->10.10.1960
    The user (customer) wants 2 things to change:
    1. if the given two digit year <= actual year (06):
    10.10.06 ->10.10.2006
    otherwise
    10.10.07 ->10.10.1907
    2. by entering a date, adf have to be accept the date without dots too:
    101006 ->10.10.2006
    1.: I tried to set theconfig param: <two-digit-year-start>2006</two-digit-year-start> (or with an EL expression) in the adf-faces-config.xml but it has no effect.
    Is it a totally wrong idea or is it a bug?
    Any other idea?
    2.: Is it possible to solve this problem with a built in control or converter? Or do i have to write my own converter?
    Thanks for any help!

    The exception is gone - I must have had something wrong in my classpath. However, I still see the warnings. Are those warnings expected when using ADF in conjunction with myfaces?

  • Change of original email address

    Hi
    20'th of June I wrote a letter to support about changing the original email address to the new one.
    I registered my skype account near seven years ago and that email was my working email.
    I quitted that job - so i need to change my email address to restore password.
    I still have ability to send from that address but cannot receive letters on it.
    ISSUE ID: AC002-LX-000
    I have been asked to proove the address by sending the email from it to support - and i had done that on the 25'th of June.
    And i still have no any answer from that time - even i sent two emails with asking of my problem progress from that time.
    Trying to restore password still is answering that my new email is not registered in system - howewer i can find myself using the new address.
    Email i have received from support at 20'th of June:
     Thank you for contacting Skype Customer Service.We understand your concerns regarding not being able to receive Skype e-mails onyour old registered e-mail address.Kindly be informed that, as you have kindly mentioned,  you will need to contactus from your registered e-mail address to confirm that you are the account owner and then we can change the e-mail for you to [email protected] 

    just to check, using another Skype account, can you please try to use the search/add contacts option to see if your account will be shown if you enter the new email address in the seach box?   If that account has not been used for quite a while, it might have been tagged as inactive by Skype (not sure though, I hope a mod, superuser or a staff will confirm or deny this possibility).  If this would be the case, i think this would be another concern that you may need to bring to the attention of the customer support dept.
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • Show Details in pagetoolbar-options - property has no effect?

    Hello all
    When I set the property-value in the pageToolBar-iView for the Details it seems to have no effect:
    When I save and preview the whole thing, the option "Details" is still available...
    When I change the options for everything else (Reload, Add to Favourites, ...) it has immediate effect.
    By the way - although I don't want it - I also can't remove the caption/title of the current view in the pageToolBar.
    Any help or explanation is greatly appreciated.
    Regards
    Michael

    Hi Vineeth
    Thanks so far for your reply.
    Of course, this could be due to some server-/proxy-side caching, although I doubt that in my case.
    I already made the same settings on the productive-portal and experience the same behaviour there, which surprises me a little.
    I'll simply wait about a week, maybe the problem will vanish by itself (rather I'll wait for the proxy or any other cache to un-cache it).
    I'll post my experiences.
    Regards
    Michael

Maybe you are looking for

  • Set Default Value for People Picker in List Template current user

    Hi, I have field definition in my custom list   <Field ID="{26763808-64BB-4A3C-93A0-ED45AF783D45}"  Type="User" Name="RequestedBy" DisplayName="Requested By" Required="FALSE" ></Field> I need to set default current user in this. I found few options w

  • Recursive and loadable webdynpro tree

    Hi I was trying the "Constructing a Recursive and loadable webdynpro tree" example...I completed all the steps.But when I deployed it it trew an error 500   Internal Server Error Failed to process request. Please contact your system administrator. Co

  • Problem with enhancing BP_HIER view BP_HIER/EOVPHierarchyTreeV

    Hi experts, Need some urgent help regarding enhancing of view BP_HIER/EOVPHierarchyTreeV  in component BP_HIER. I am facing a strange issue here. I enhanced the view BP_HIER/EOVPHierarchyTreeV and redefined a method EH_ONNEW_NODE. But when i check th

  • Reg:xml upload to appl server

    Hi , I had declared an internal table which contains a field type hexa decimal. TYPES: BEGIN OF XML_LINE,   DATA(256) TYPE X, END OF XML_LINE. now while uploading the xml data to appl sever the last character of all the lines are missing . when downl

  • Aquarium Maintanance System - Java Help

    Hi, I am not sure if this if this is the correct forum, however I need some advice on a project that I am doing. I am creating a Aquarium Maintanance System, programming it in Java, however some problems arise for instance I do not have the sufficien