I have image which contains tags(showed with # symbols) when i click on a particular tag then i need to call a web service by passing the same tag on which i clicked and i need to push another view.
After clicked on the tag i need to perform search functionality which tag i have sent.It may have multiple tags for single image like that i have more than on image.
Great appreciation for answer.thank you.
Attached the screen shot below placed the tags with # symbol before.
There are a number of open source libraries that help with what you want to do. Check out this link to another StackOverflow post that suggests using TTAttributedLabel.
Related
I would like to be able to send text to/update a Label in my App that is already released whenever I want to via Internet. It really just needs to be a little text, like one or two sentances.
I was doing a lot of research on how to achieve this.
Twitter - use a Twitter Account to post the text and get the post from inside the app ? - Just found solutions to read the user Account that is currently using the app (but should be my own account where i can post, and that post should be shown in the app to everybody) and need to be locked in Twitter in System preferences. If you want to read "foreign" account you need to integrate fabric - sign there... very complicated... !?
Podcast ?
Just get text from anywhere via NSURLSession - I have no Website to put the text on... !?
Use Restful Service ? Is there any free web service I can just write two sentences and they could get loaded into my app?
So I am not asking about how to implement NSURLSession or so, I just wonder what would be the easiest and free way to provide text somewhere in some format from where my app could download the text and update a label? I don t really want to pay for a service or a website just to write two sentances from time to time, from where I could download it into my app...
Thanks for ideas
One option would be to put a text file in a Github repo. Github provides a link to the raw file, so your app could pull from that URL.
If you want to do this through the web interface, you can follow these steps:
Create an account on github.com, and log in.
Click the plus (+) in the upper right to add a new repository.
Pick any name for "Repository name".
Check "Initialize this repository with a README". You need this to make it easy to edit online.
Click the green "Create repository" button.
Click "Create new file".
Fill in the file name.
Enter whatever text you want for your app in the body of the file.
Click the green "Commit" button at the bottom.
Whenever you want to edit the file, you can click on the file name and then click the pencil to edit it.
You can get the link to the file by clicking the "Raw" button (when viewing the file) and copying the URL from your URL bar. It should be something like https://raw.githubusercontent.com/<username>/<repo>/blob/master/<filename>.
I want to show a simple list of image titles, then be able to touch each and see the image. The list is in an XML doc with title, URL, and unique integer identifier for each image.
I found this excellent tutorial by Rafael Garcia for anyone who has the same problem. Still working out the logic of it so I can adapt it to my project, but I've copied his code and got a working prototype.
http://www.appcoda.com/ios-programming-rss-reader-tutorial/
I have been told this is possible to do but cannot get this to work.
Basically I am trying to cache and image using forge.file.cacheURL()
Now I can get the file just fine and display it in the page by creating a new Image object but what I want to do is use this cached image to change the image in the topbar.
When ever I try to do it I get an error saying "file not found" and after reading the docs a little more it seems that trigger may have "src/" coded into the class because if I put just "image/logo.png" the logo.png will show up in the header because its part of the app package.
I guess the question is.. Is my assumption correct?
Thanks!
The native UI elements (topbar/tabbar) load images directly from your apps package, not through a URL in the same ways images are shown in the webview.
What this means is that currently you can only use images included in your app in the topbar/tabbar modules.
in case anyone is interested in this, the ability was added a while ago to the API so you can now use a cached image or filesaveURL feature of forge to change the header image dynamically.
I need to individualize documents within an iOS-App. I could provide the origin-documents as DOCX, PDF, PPT etc. The output-format has to be PDF.
My minimun requirement is to fill some text-fields. Nice to have would be to replace an image, too.
I´m quite used to generate PDFs programmatically using UIGraphicsBeginPDFContextToFile etc. But in my current case I don´t want to create the whole document programmatically, I just want to replace some content.
Any hints / tipps?
Thank you in advance.
DOCX is a zip - format file so you can process the contents programmatically and the reconstruct the zip file. PPT is a binary format though newer versions of PowerPoint might also construct zip-oriented versions that you can programmatically process. You mentioned though that you need don't want to programmatically process these documents - which I would probably also do only as a last resort.
For your DOCX origin/source documents (or doc,odt,rtf but not ppt/pdf) you could use Docmosis cloud services if your app can have the external dependency. You would upload your DOCX origin documents with placeholders for text-fields or images as a one-off/occasional task. Your iOS app then calls Docmosis sending instructions and data to create the output PDF and either stream it back to the app or email/store it or both.
The upside is it takes all the load and coding away from the iOS application (there is an SDK). The downside is it is an external depdendency. Please note I work for the company the created Docmosis.
Hope that helps.
Why not just load a page in a webView modal that points to a URL of a page you create? The main parts of the page would be static, and then the fields you need to customize would be populated via Javascript or PHP.
For example, we have a contact form in our app that gives you an option to view the details of your completed form after you submit. When the user clicks on the button to view the Contact Confirmation, it loads example.com/confirmation.php in a modal view within the iOS App.
On the confirmation.php page (on the web), I use PHP to pull in $_GET variables from the URL parameters which then populates the page with my static content, and their customized information that they entered into the form.
My clients can enter text into textarea and have the option to use the markdown or textile filters for each textarea.
With some models (articles, newsletter, etc) they can upload images to associate with the model, which are displayed in a column next to the text of the text.
This worked fine for a while, but they have now told me that the want the ability to put the images INSIDE the text a specific positions.
What is the best way to go about this? I suppose I may have to use a wysiwyg for this, but would rather not. And how would this work for images which are not yet on the server, etc?
There are different directions you could go to:
Follow the path of Confluence, which released in their new version 4.0 a rewritten WYSIWYG editor, that stores as source XHTML, not any more wiki markup.
Leads to an update of all pages when migrating.
Was pretty difficult to implement. I do not know if they use any more the TinyMCE editor of previous versions.
Follow the format of markdown how to include images in your source format. So by typing: This is my text. !image.png! The inline image shows ..., you will have a format that is understandable.
You have to expand the interpretation, so that the !<filename>! will be mapped that is stored locally anyway.
You have to add clear-up dialogs for the images that are yet not known, so doing bulk uploads ...
You may provide a drag area on your view, that then shows the filename and gives examples how to include that inside the text area.
Go for something in between, by allowing users to drag images inside the editor. There are plugins written in Javascript that allow you to do that, e.g. UI Draggable for jquery
I have no idea how to integrate that image inside the text editor. Overlay?
So the second one is the easiest, and the user knows how to do it. If they only decide that this is the solution they want to have :-)
I think I'm going to use a combination of #2 above, and the Liquid templating engine.