Welcome to the RareWire Community Board. Use the field below to add your own contribution or find answers in existing topics.
Nie znaleziono podobnych wątków.
+1
Z odpowiedzią
onclickup across whole screen
Is it possible to attach an onclickup to the whole window that is only fired when no other action is executed?
The intent is to create an issue skin app, most magazines in the app store have a toolbar interface which toggles open and closed when the user clicks on an area of the screen that is not already bound to a clickup action.
Can you help me simulate this?
The intent is to create an issue skin app, most magazines in the app store have a toolbar interface which toggles open and closed when the user clicks on an area of the screen that is not already bound to a clickup action.
Can you help me simulate this?
+1
Changing stack order (z index) after loading an external wire file.
I think im running into a z-index problem. If you load a pdf from from a separated wire file on the main wire init, the included wire will stack itself over the top of other components.
The idea is to have a toolbar that shows up across the app over the top of the pdf, but the pdf needs to be dynamically loaded using the load tag.
Is there anyway to update the z-index of a panel?
The pdf is intentionally at 100% W and H but it needs to be under the toolbar.
The idea is to have a toolbar that shows up across the app over the top of the pdf, but the pdf needs to be dynamically loaded using the load tag.
Is there anyway to update the z-index of a panel?
The pdf is intentionally at 100% W and H but it needs to be under the toolbar.
+1
Z odpowiedzią
Tool Questions
I know testing on a real iOS device is best, but any recommendations for a good iOS simulator/emulator?
+1
Ukończony
CSS and HTML Caching in Web View
When using a panel for multiple static HTML pages, you will find out quickly that the iOS UIWebView class will cache as much as possible. This would include your css files that you might change during a new snapshot. An easy way to allow all of your HTML pages to pull in your css file change without adjusting all your files is to dynamically load your css file, with a query string parameter and random number at the end. Below is a small snippet that you can use in a script block at the end of your body tag.
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'css/styles.css?rand=' + Math.random();
document.getElementsByTagName('head')[0].appendChild(link);
Enjoy!
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'css/styles.css?rand=' + Math.random();
document.getElementsByTagName('head')[0].appendChild(link);
Enjoy!
+1
Z odpowiedzią
Question about the use of the video tag.
I noticed in your tutorials for video you are creating an attribute called _file which links to the video file. I noticed this _file variable is inside of the image element that actually launches the video. Could the _file variable be placed inside of the video tag instead? Not only would it make more sense but it would also be easier to track in larger wire files.
+1
Naprawione
I think I found a bug where height="fit" can't be included in a style.
I'm cleaning up my code, so I've been going through my tags and copying and pasting attributes into styles. But I noticed that all my text was disappearing. I trial-and-errored my way to discover that the problem was the height="fit" attribute. Here's an example:
Original code:
New code:
This made the text disappear. I fixed it by adding an actual value to the height like this:
There's probably a perfectly rational reason for this, and it probably has to do with a lack of understanding of "fit" and that it's late. But I thought I'd share this in case anyone else encountered it.
Original code:
<text name="descriptiontext" alias="DESCRIPTION" bottomof="SPACER2" text="blah blah blah" width="90%" height="fit" color="333333" font="HelveticaNeue" size="13" alignment="center" valignment="center" align="center"></text>
New code:
<style name="descriptionstyle" width="90%" height="fit" color="333333" font="HelveticaNeue" size="13" alignment="center" valignment="center" align="center" />
. . .
<text name="descriptiontext" alias="DESCRIPTION" bottomof="SPACER2" text="blah blah blah" style="descriptionstyle"></text>
This made the text disappear. I fixed it by adding an actual value to the height like this:
<style name="descriptionstyle" width="90%" height="20" color="333333" font="HelveticaNeue" size="13" alignment="center" valignment="center" align="center" />
. . .
<text name="descriptiontext" alias="DESCRIPTION" bottomof="SPACER2" text="blah blah blah" style="descriptionstyle"></text>
There's probably a perfectly rational reason for this, and it probably has to do with a lack of understanding of "fit" and that it's late. But I thought I'd share this in case anyone else encountered it.
+1
Z odpowiedzią
complex png crashing ipad
Has anyone ever seen a complex .png crash an ipad? Not only does fuse box crash but the whole ipad restarts every time i view it.
<wire>
<main>
<panel name="panel" width="100%" height="100%" align="center" valign="center" background="#FFFFFF" draggable="yes" zoomable="yes">
<image name="background" source="FromFred/TextText_208ci22_1-22.png" width="100%" height="100%"></image>
</panel>
</main>
</wire>
+1
Z odpowiedzią
Web object not loading external site through URL
Hi i am attempting to auto load a web object.
My first try was to simply fill out the url field, save my wire file and load up in fusebox.
That did not work. Should it?
The next attempt was to create a panel and nest the web tag inside of the panel. Then in the panel's onloadcomplete call i loaded the url through an action. This did not work either.
I actually then called a coworker, had him create a similar test and we both shared his result because it worked for him but still not on my ipad fusebox. I am on the latest version of fusebox and the latest ios. Can you tell me what might be wrong?
Here is my sample code.
My first try was to simply fill out the url field, save my wire file and load up in fusebox.
That did not work. Should it?
The next attempt was to create a panel and nest the web tag inside of the panel. Then in the panel's onloadcomplete call i loaded the url through an action. This did not work either.
I actually then called a coworker, had him create a similar test and we both shared his result because it worked for him but still not on my ipad fusebox. I am on the latest version of fusebox and the latest ios. Can you tell me what might be wrong?
Here is my sample code.
+1
Z odpowiedzią
Single Page PDF Looks Low Resolution
I'm experimenting with different formats in some test apps right now and was wondering if Rarewire ever resorts to utilizing the PDF pict preview as opposed to reading the high resolution data within the PDF?
I have a single-page test project and the PDF in that project looks low resolution on my ipad. Am I forgetting a tag or possibly supplying a PDF that isn't optimized for RareWire? Do you have recommended PDF output settings that you use regularly?
Thanks in advance for any help.
Phil
I have a single-page test project and the PDF in that project looks low resolution on my ipad. Am I forgetting a tag or possibly supplying a PDF that isn't optimized for RareWire? Do you have recommended PDF output settings that you use regularly?
Thanks in advance for any help.
Phil
+2
Z odpowiedzią
Can you provide a quick little JSON building 101?
I'm playing around with the datasource add property to build a local datasource from a remote one. (Thanks, Adam!) But I'm having some trouble. Can you give me the most stripped down example of a WIRE that adds to a local JSON file?
(I'm mostly interested in the datasource line referencing the local file at the top of the WIRE, as well as where exactly the ".add" property sticks the code within the local file.)
Thanks!
(I'm mostly interested in the datasource line referencing the local file at the top of the WIRE, as well as where exactly the ".add" property sticks the code within the local file.)
Thanks!
+1
Z odpowiedzią
Graphics
I am trying to create an app with a web type structure, is there an easy way to connect panels with a line?
+1
Hide minimize button on full-screen video
I have a video with fullscreen="yes"
When the controls are showing, there is a minimize button on the right side. If you click it, the video disappears but the audio continues playing. Is there a way to get rid of the minimize button or to set a size for use when the user clicks minimize?
When the controls are showing, there is a minimize button on the right side. If you click it, the video disappears but the audio continues playing. Is there a way to get rid of the minimize button or to set a size for use when the user clicks minimize?
+2
W trakcie analizy
Global Classes
I think this is already coming in the future...but I think there is a huge need for global classes that can be accessible via sub wires pulled in. Maybe I just don't know how to do it :-)
+2
Naprawione
Map causing app to crash
I am trying to use the map object to get the user's gps latitude and longitude to be able to submit it to FourSquare using their REST API. However when I open the app, it sometimes causes the app to crash. Probably out of 5 tries, it will happen 3 times. I'm assuming it has to be a memory issue, but I'm not certain.
Here is what I have for my code:
Here is what I have for my code:
<datasources>
<datasource name="geo" source="standard" query="location" distanceFilter="1" providertype="location" />
</datasources>
<main>
<map name="map" alias="MAP" datasource="geo" xpos="350" width="50" height="50" type="satellite" showuser="yes" currentlocation="yes"></map>
</main>
<actions>
<action name="enter-amount">
<sync>
<assign property="datasource:geo.location" value="on"/>
<assign property="object:MAP.region" value="[object:MAP.gpslatitude] [object:MAP.gpslongitude] [object:MAP.gpslatitude] [object:MAP.gpslongitude]"/>
<assign property="var:latitude" value="[object:MAP.gpslatitude]" />
<assign property="var:longitude" value="[object:MAP.gpslongitude]" />
</sync>
<assign property="var:tipCalculated" value="" />
</action>
</actions>
Customer support service by UserEcho