0

How do I configure the image for imageview from the library when we click on ima...

 2 years ago
source link: https://www.codesd.com/item/how-do-i-configure-the-image-for-imageview-from-the-library-when-we-click-on-imageview.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How do I configure the image for imageview from the library when we click on imageview?

advertisements

I am developing an application.In that I want to set the image for imageview.So when iam click on imageview,in that time only library will be open.For that i use the below method.But library will be opened at every click at every where.

-(void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event.

But i want to open the library when iam click on imageview only.Please tell me how to solve this one.


Set myImageView.userInteractionEnabled = YES and then use a UITapGestureRecognizer.

Tags iphone

Related Articles

How do I configure the DocumentRoot when using the python HTTPServer?

I have the following code as my python server: #!/usr/bin/python3 from http.server import HTTPServer, CGIHTTPRequestHandler port = 8080 host_name = "localhost" httpd = HTTPServer((host_name, port), CGIHTTPRequestHandler) print("server start

How do I find the text () when I click on a particular item?

when I click on "press me" span text , I need to get "fold2" text() value. I tried to add lot of jquery traverse methods in my script, but I can't find the perfect one. Because of my <li> including lot of <span> tag availab

How to avoid refreshing the page when I click on the return button

Am using struts2 to create login and logout functionality, when user login i will create the session for him,by using interceptor i will filter all users if they are in session or not if the session not created i will redirect the page to login......

How do I get the ID when you click and delete it? Google Maps V3

Here is my code...I try to put event listener but the console says: markers.addListener is not a function Here is my code.....https://jsfiddle.net/1LwLczgr/1/ //The problem :( markers.addListener('click', function() { var marker = this; alert(this.id

How do I activate the form when you click anywhere on the form?

MY C# app workd fine and stays on top whenever asked to. What I face and want is : Suppose my app is open and another app (say Notepad) is also opened halfly overlapping my app window. When we click anywhere on Notepad, it gets activated. Whereas wit

How to manually configure the returnURL when using Ajax.ActionLink

I have this link @Ajax.ActionLink("create poll question", "CreatePoll", new { id = Model.DebateID }, new AjaxOptions { UpdateTargetId = "poll-entry-box", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" })

How can I close the application when I click on the cross in the title bar when I have multiple forms?

I have searched through stackoverflow and has found similar question. As I am still a beginner in C# programming, I could not quite understand what the solutions meant. I have a c# windows form application that has several forms. As it only closes wh

How to stop reloading the page when you click the button?

I have asp.net website which include some calculation on button. When I press the button, my calculation works fine but, firstly page is refreshing and then the calculation looks on the label. I want to do that calculation looks on the label directly

How to access Android default images (for example the image for the thumb of the search bar when it is pressed) from the java code?

How to access android default images ( for example image for seekbar's thumb when is pressed ) from java code ? I am changing thumb but and I copy from platforms/android-12/data/res/drawable-hdpi into my drawable-hdpi folder in project, but it is pla

How do I configure the font size for the tree item in the explorer package in Eclipse?

How can I configure the font size for the tree item in the package explorer/outline in Eclipse? Which item in Font under Preferences I should change?There is no way in Eclipse to change the font used for Package Explorer and other such views. You can

How to draw a default image in imageview to the image center?

How to draw a default image in imageview in the center of imageView?using - (void)drawRect:(NSRect)rect overridden method of NSImageViewWhy not just set the image view's image initially to the default image, then change it later?

How do I configure the context / user table?

With the new ASP.NET MVC 5 Preview released, how do I configure the Users context/table? In MVC 4 I would just use my own User class and then point the WebSecurity initialize to it, tike this: WebSecurity.InitializeDatabaseConnection(connectionString

How do I break the loop when the connection fails?

Im working on a ping batch program. What i wanna learn is how do i skip the loop when the connection is dead? For an example: @echo off :1 ping www.stackoverflow.com (I guess) if errorlevel 1 set errorlev=1 If errorlevel 1 goto 2 goto 1 :2 Echo ping

How to delete the fragment when you click the item again

Good Day, I am facing some problem with fragments I am displaying a fragment when user clicks on 'More', as a popup menu but when I click the 'More' again, it would be like add one more fragment on the previous one can someone tell me how to remove t

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK