Hi,
in my app, I am trying to move a subview which I popup. This is am doing using UIPanGestureRecognizer and gesture recognizing functions provided by apple here (http://developer.apple.com/library/ios/#samplecode/Touches/Introduction/Intro.html)
So the problem I get is that when I click on the button image and try to move the view, it does not move the view. The functionality works only when I click the button, and then click it and move it. only then does it move the view.
I would like to know what I am doing wrong.
Here is the button code to which I add this functionality
![Rosie Huntington-Whiteley rosie huntington-whiteley weight. Rosie Huntington-Whiteley](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_ui34XqIUZuf06BOsIIoeS9pH2nVvqVksl7DYYhNJe_n74JUTTXY4YHXCUnYZJND_7zN-P-qq6uzkOTkOjNuq2OD8gxlq-BpO55FaN9spmDpoRUDoi2iHM=s0-d)
Rosie Huntington-Whiteley
![Rosie Huntington-Whiteley To rosie huntington-whiteley weight. Rosie Huntington-Whiteley To](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tuMrPSgdRSP6tgRP7gfwMgZ6PUsTKbjJ2ilnWATqy7LqVw_bOWJNPW_kac66dwW4Ufr3TsSgomewY3XKdYFRhVCwDltm59OFL2wo7fX0ZTraW9ekLX4DRjKtnkIzRqVdSNBCgzE2CWwFEJkhRNcaCCSCagVYl-spPy5Yn5JdE=s0-d)
Rosie Huntington-Whiteley To
![Rosie Huntington-Whiteley rosie huntington-whiteley weight. Rosie Huntington-Whiteley](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vrfEx4Eo78Fmi1CYDY5lbnevF9dWv4iHPKbmxJkLyhNOgh5wUDfIJ_H2qR4LXzoyJO8bmDfoGmQZuAwbS9gd-fSftu2E-nVMLSBxs_VpjVlCAc7ZqLP5rmD7ShMn3nFquxlPJiYB_v=s0-d)
Rosie Huntington-Whiteley
![Rosie Huntington-Whiteley Was rosie huntington-whiteley weight. Rosie Huntington-Whiteley Was](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sVCgO_mIETbhDkwSRvXDgk5Ye5YJ4lkf-lHCKxpk7jMTry-So4cDg6ZOKXYXwalmznVlveN2gjavfvDATj7NvCLoZob0DAciQwpaCyHQ1vfv9spNdHP2mmRQwJ1nR2_1Hea9-d3jsX8RvP=s0-d)
Rosie Huntington-Whiteley Was
![Rosie Huntington-Whiteley rosie huntington-whiteley weight. Rosie Huntington-Whiteley](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vhK1vCmKqMOSGQW2Gl8NpsDZK1e5lmzIy28UBT4eKn3MV5Lsl1xEo7ILkmAXkTJNzo7oaJezD_9UX0jNlZnyXW9hl-FBvuh4TC_tk6dIk51lLa7csp7F1Xw6u_0CDPGzGtkYWbXGKRXaKp7qB1VjsRefmmPmh9GkTRTQ=s0-d)
Rosie Huntington-Whiteley
![Rosie Huntington-Whiteley is rosie huntington-whiteley weight. Rosie Huntington-Whiteley is](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_s_Yh8pw0GC_ibMas61Zctq2-yRzP6Jfm4XNqbZHPeh97mtzq9T2hSC5Ha9LCBvN8gmF-a76BPfI6sOh7lzLxLX9QVMM9GMTctPkstvLkTSPa1UNhQrpjnLuEqc0M8o8hGbstMEM_i4G8E=s0-d)
Rosie Huntington-Whiteley is
![Rosie Huntington-Whiteley rosie huntington-whiteley weight. Rosie Huntington-Whiteley](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVPi7TZGToNZfCYzw7zEz8xqoqHbG6xxKPN_PEY6zdKGTObCLPc1biwNAvj6PbAQ9G3XkgelWJTBaKrYZYf4CA5_16uvaDcp59dSxIrQuxP2yJaMCVjwkHGOQS0o4yEA2JFVQgMUV13Fmn/s1600/rosie%252Bhuntington-whitely.jpg)
Rosie Huntington-Whiteley
![Rosie Huntington-Whiteley and rosie huntington-whiteley weight. Rosie Huntington-Whiteley and](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vZI0u5ssPic6P6Ui51EJSgL_JTfnAjTc0vNNvpZgZbinORV_UEKVt8JCoJ-3lz0dWbXD_A_YWxB_GE5btUrG5eBucngwKZFYfx_mIHw-GSe4dnfXNdxafzl6ZbsRnRTAMP6MQhdjinl2s6Lq0_DXfa1umjpA4DMg81Bv2l_NncjKzmB3dN=s0-d)
Rosie Huntington-Whiteley and
![Rosie Huntington-Whiteley rosie huntington-whiteley weight. Rosie Huntington-Whiteley](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_teE-OBXUN0UnIdRYhOqw8RVJ7-2k3sehwC0KHaxORRsVMVfsJlkcEzkHcSt1jcX2tcd9AIEQ04SfPjHfhD0fHRF_TTcUg4WsRfKI8OSVJz8jr5Tmbt3DYANcm0cUvfRX6mqzR7lP27ApKTSD2fArgkZlSd=s0-d)
Rosie Huntington-Whiteley
![Rosie Huntington-Whiteley. rosie huntington-whiteley weight. Rosie Huntington-Whiteley.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzeMf3soTw-ywtedwnzhl3kYzDoDy3Bn0BYXtYz0hxf73F_F-ODfB4jktJQqSE_G3I7cb5w-_nKFlf2MUl5oUA-XNmf0r0FciRFUbk3kyQQS_-NHGzpObz6R5Sbh2xWCmeo0TXRCUMynf5/s1600/Rosie%252BHuntington-Whiteley%252Bshows%252Boff%252Bher%252Blong%252Blegs%252Bin%252Btiny%252Bhotpants%252Bas%252Bshe%252Bcosies%252Bup%252Bto%252BJason%252BStatham%252Bin%252BSt%252BBarts%252B%252B1.jpg)
Rosie Huntington-Whiteley.
![Rosie Huntington-Whiteley rosie huntington-whiteley weight. Rosie Huntington-Whiteley](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vMBuzzjOxHqU6a7mYX7qknJTD1wF3dnerUQ6cgxu_GBzOB3aBg0Z3SKUeNZrBVZplL5fZwfp-yIVUL46iUMVb6iF0SdIB4jI61VXGKfv4s5MqBR8NSq2hrD2GcHZi83Dz3HPzMz5QCu8BOqCwjf-16bfflekRmYZA=s0-d)
Rosie Huntington-Whiteley
![Rosie Huntington-Whiteley rosie huntington-whiteley weight. Rosie Huntington-Whiteley](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_uXg2cn-gk8JnIfayJNZ3pgLHTNl7MmTX7TlZZGDZhWGyKyVZVYe6uijaumdXzz5dEDLEHe7rXlrZjJYvYmQ_YsK7bG-9zSzTquXaSpofEx6TFbUsmA6PGBoBmGv5StEbdLrMqlrKZIFUJUywE5_dkQdv2J9ABuXMMSAksM4HCuLPz_oO9d6xVO0ZvjrEw=s0-d)
Rosie Huntington-Whiteley
![Star No Makeup. WITHOUT MAKEUP rosie huntington-whiteley weight. Star No Makeup. WITHOUT MAKEUP](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sFs5EOwx5YGGIc0B3cPrQRPzN5g7mZc_5cjn_t_40K6ZHftai_yCTjW31-f9Aq8DsrKsS-QC0l6sXoXFmZRSpgW6xgRtMm0LdoJF8pYVpT38phf9JB-wr9borRCcxkCcNWPROZGRPxrBeUS5uIqe8T=s0-d)
Star No Makeup. WITHOUT MAKEUP
in my app, I am trying to move a subview which I popup. This is am doing using UIPanGestureRecognizer and gesture recognizing functions provided by apple here (http://developer.apple.com/library/ios/#samplecode/Touches/Introduction/Intro.html)
So the problem I get is that when I click on the button image and try to move the view, it does not move the view. The functionality works only when I click the button, and then click it and move it. only then does it move the view.
I would like to know what I am doing wrong.
Here is the button code to which I add this functionality
![Rosie Huntington-Whiteley rosie huntington-whiteley weight. Rosie Huntington-Whiteley](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVPi7TZGToNZfCYzw7zEz8xqoqHbG6xxKPN_PEY6zdKGTObCLPc1biwNAvj6PbAQ9G3XkgelWJTBaKrYZYf4CA5_16uvaDcp59dSxIrQuxP2yJaMCVjwkHGOQS0o4yEA2JFVQgMUV13Fmn/s1600/rosie%252Bhuntington-whitely.jpg)
![Rosie Huntington-Whiteley. rosie huntington-whiteley weight. Rosie Huntington-Whiteley.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzeMf3soTw-ywtedwnzhl3kYzDoDy3Bn0BYXtYz0hxf73F_F-ODfB4jktJQqSE_G3I7cb5w-_nKFlf2MUl5oUA-XNmf0r0FciRFUbk3kyQQS_-NHGzpObz6R5Sbh2xWCmeo0TXRCUMynf5/s1600/Rosie%252BHuntington-Whiteley%252Bshows%252Boff%252Bher%252Blong%252Blegs%252Bin%252Btiny%252Bhotpants%252Bas%252Bshe%252Bcosies%252Bup%252Bto%252BJason%252BStatham%252Bin%252BSt%252BBarts%252B%252B1.jpg)