Comments (5)
what have you tried so far?
from mtpopupwindow.
Ive get an image from URL and called it *data.
and then I tried this code:
//show local file
MTPopupWindow* winPop = [MTPopupWindow alloc]init];
UIImage *image = [UIImage imageWithData:data];
UIColor *c = [UIColor colorWithPatternImage:image];
winPop.backgroundColor = c;
from mtpopupwindow.
I have problems to understand why do you do that ... The popup window meant to show an HTML file - that's why it uses a web view control to show the content.
Btw - did you try to just pass the URL to the image to showWindowWithHTMLFile: ? I guess if you do that it'll just take the image URL and show it in the web view control.
from mtpopupwindow.
Thanks!
I tried to enter the image URL to showWindowWithHTMLFile: and its work.
but, could i stretch the image to the popup size?
from mtpopupwindow.
not automatically
from mtpopupwindow.
Related Issues (9)
- How do you change the size and color of the close button? HOT 1
- Scaling issue, behavior of contentSize changed in iOS7
- Crash if trying to show in TableViewController HOT 3
- Application is not showing popup window in case of tab bar based application HOT 1
- Fix view of content from local files
- Crashes on latest Xcode / iOS HOT 5
- close button action method not working crash when i click the button.
- not immediately appearance of Pop Up
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtpopupwindow.