Friday, January 10, 2014

Consult QQ send pictures feature is how to achieve

There are no large QQ God can tell me about how the picture sending realized. There related needs. The main aspects of the interface. For example: How do I put the received binary data is displayed in the form of tableView chat interface
Reply:
This requires background support it, the first client to send pictures to the backend server, then processed and returned to the client server processing
Reply:
You can take a look SDWebImage library directly, then some trouble, download pictures requires asynchronous and displayed. The server needs to process the data into NSData types of transmission over the best.
Reply:
Now that you know the image is converted into a binary, then you should also know how to convert the binary image of it. Binary conversion after you receive UIImage. UIImageView not directly displayed to the line. I suspect that your problem is not to ask how the other side know that I send pictures binary? If this is the case. When you add a Type sent. According to the Type to identify and then converted into binary UIImage
Reply:
references
Now that you know the image is converted into a binary, then you should also know how to convert the binary image of it. Binary conversion after you receive UIImage. UIImageView not directly displayed to the line. I suspect that your problem is not to ask how the other side know that I send pictures binary? If this is the case. When you add a Type sent. According to the Type to identify and then converted into binary UIImage


May I say very clearly. Now the picture is already available in uiimageView display, mainly, can not make the kind of effect QQ chat interface. For example, clicking, and then view the big picture
Reply:
references, 4th Floor zxd11617 reply:
references
Now that you know the picture conversion binary, then you should also know how to convert the binary image of it. Binary conversion after you receive UIImage. UIImageView not directly displayed to the line. I suspect that your problem is not to ask how the other side know that I send pictures binary? If this is the case. When you add a Type sent. According to the Type to identify and then converted into binary UIImage


May I say very clearly. Now the picture is already available in uiimageView display, mainly, can not make the kind of effect QQ chat interface. For example, clicking, and then a larger view


With a view to show the big picture .... You can find the next code4app DEMO now there are specific examples of this is already a lot
Reply:
First, the client will be able to post pictures over server-side image file saved to generate real returns to time you may be shown a picture that has been generated url.

As you talk about the Zoom function, the principle is very simple way. To display pictures plus UITapGestureRecognizer tap gesture, showing clicked to enlarge. Show the big picture into a dedicated controller can handle up. Use presentModelViewCotnroller to pop the big picture of the display controller, the controller will be added to the big picture uiscrollview, because uiscrollview default scaling processing package.
Reply:
You can also zoom in on the big picture.
Reply:
references
first client will be able to post pictures over server-side image file saved to generate real returns to the display when you are likely to be already generated picture the url.

As you talk about the Zoom function, the principle is very simple way. To display pictures plus UITapGestureRecognizer tap gesture, showing clicked to enlarge. Show the big picture into a dedicated controller can handle up. Use presentModelViewCotnroller to pop the big picture of the display controller, the controller will be added to the big picture uiscrollview, because uiscrollview default scaling processing package.

Thanks to provide a method, I tried, because I was in a self-uiimageView defined inside the cell. After adding tap gesture is not appropriate corresponding methods. Click on the image, but will still carry didSelectedRowAtIndexPath
Reply:
reference to the 8th floor zxd11617 reply:
references
first client post pictures will be able to save over server-side image file to generate real returns to time you may be shown a picture that has been generated url.

As you talk about the Zoom function, the principle is very simple way. To display pictures plus UITapGestureRecognizer tap gesture, showing clicked to enlarge. Show the big picture into a dedicated controller can handle up. Use presentModelViewCotnroller to pop the big picture of the display controller, the controller will be added to the big picture uiscrollview, because uiscrollview default scaling processing package.

Thanks to provide a method, I tried, because I was in a self-uiimageView defined inside the cell. After adding tap gesture is not appropriate corresponding methods. Click on the image, but will still carry didSelectedRowAtIndexPath


Your image should be changed userInterfaceEnabled attributes yes or you can not intercept the click event on the proxy method to deal with tableview
Reply:
imageview
Reply:
references
userInterfaceEnabled property of your image should be changed to yes or you can not click on to tableview event interception proxy approach to the


userInterfaceEnabled setting is yes, or blocking anything.
Reply:
reference to the 11th floor zxd11617 reply:
references
userInterfaceEnabled properties of your image should be changed to yes or you can not click on to tableview event interception proxy approach to the


userInterfaceEnabled setting is yes, or blocking anything.



If you set the UIImageView userInterfaceEnabled is yes. UIImageView and to add a Tap gesture, it will be captured and responses.

No comments:

Post a Comment