When I open any song site through simulator of iPhone or iPad say mp3skull.com . and when i click on option download It gives me the Alertview option to COPY and OPEN . IS there any way I can give one more option in this .say open copy download. for more clarity shown in page :
1st off: I no not think that adding a specific item there is possbile.
Now assuming you actually want to add a "Download" button, consider this:
Opening a file by default means you have to download the file first
"Download" on a PC/Mac just puts the file into a "known" folder where you can open it with any program later while "open" puts it into a (possibly) random temp folder and then runs the default program
Due to the nature of safari in iOS a "Download" button would be more like "Store in Safari for later"
Open in safari is -> Download, Store, Ask user what app he wants to use to open the file type.
So considering the above points I do not see how a "Download" button would function. If you have some more details what you want your button to do, maybe there is an alternative that will work for you.
Related
I am trying to open a file-browsing window similar to the one shown in the screenshot where you can "select files and click open/select" in my Swift application when the user clicks on the "Browse" button.
In Automator, this is done by using the "Ask for Finder Items" action, and in Swift
NSWorkspace().selectFile("\(fileName)", inFileViewerRootedAtPath: "/Library")
opens up a new instance of Finder.app itself; what should I do if I would like to emulate the behavior seen in the Automator action?
You're looking for the NSOpenPanel class. It has several configurable properties for which kinds of files can be selected, and when the user finishes selecting files, you can access them via the URLs property. You can also read more about it in the File System Programming Guide.
Am using Mac lion for developing iPhone application, there I created database and copied into documents directory of the application, But the path to the applications documents directory not found in my lion, even the "Library" folder is not available under the lion's username.
I searched completely on my lion for the folder Library which has "Application support" following with "iPhone simulator" is not found. I checked for the moving of deletions of the folder, But it's not happened.
Anybody knows for what I can't find the folder.
Please advice me, I not available what can I do to resolve this.>
Thanks in Advance!!!
Your library folder is bydefault hidden so you will have to unhide it.
You can get information about showing hidden files here
Edit1:
You can also go to library in following way
Right click on Finder icon of your Dock
Click on "Go to Folder".
Type `/Users/yourusername/Library.
Click on Go.
Edit2:
you can permanently unhide the folder with following command
chflags nohidden /Users/yourusername/Library
From the Xcode menu on top, click preferences, select the locations tab, look at the build location option.
You have 2 options:
Place build products in derived data location
Place build products in locations specified by targets
By default, your derived data directory will be under ~/Library/Developer/Xcode/DerivedData/AppName/Build/Documents.
Please confirm whether you got ?
You can also check my answer.
See my answer in this post.You should clear your trash folder and reset it.For more detail click below link.
No iphone simulator folder in Application support
Please look at the following solutions: http://helpx.adobe.com/x-productkb/global/access-hidden-user-library-files.html
Apple made the user library folder hidden by default with the 10.7 release. If it's necessary to access these files for Adobe-related troubleshooting, use one of the following methods to make the user library content visible.
Method 1
In the Finder, choose Go > Go To Folder. In the Go To Folder dialog, type ~/Library Click Go.
Method 2
Hold down the Alt (Option) key when using the Go menu. The user library folder is listed below the current user's home directory.
Note: After you open the Library folder, you can drag the Library icon from the top of that window to the Dock, Side Bar, or toolbar. That way, it's readily accessible.
Method 3
The following method makes the user library folder permanently visible.
Note: Adobe recommends that only advanced users use this method.
Launch Terminal from Mac HD > Applications > Utilities. From within Terminal type the following command and press Return:
chflags nohidden ~/Library Enter the system administrator password, if prompted, and press Return.
Note: The System administrator password is not visible as you type it.
Close Terminal for this change to take effect.
I have this navigation app with several views and no data yet.. however I had a small break from coding over the weekend and have come back to it only to have it not load in the ios simulator.
There are no errors in the xcode output while it runs but as soon as i click to run button it loads the app up but as soon as it opens it closes and goes to the home screen.
I have tried cleaning the build and opening closing everything but just cannot figure this thing out...
Since there is no error messages or indication as to what is wrong I am going to suggest
a few other things you can try out:
Have you tried "iOS Simulator" -> "Rest content and settings".
In Xcode click the "Product" menu in the menubar, hold down the Option key and
you should see "Clean" change to "Clean Build Folder".
Lastly pull up Organizer (Shift+Command+2), select the "Projects" and the then click "Delete Derived Data".
The two last ones should not be directly related to the simulator, but they won't hurt either.
Does your app requires internet connection to run.. if it does, check ur internet connection as well.
I have this kind of problem last time and turn out, if there's no internet connection and you didn't put any exception on that, the app will straight away crash with no errors..
I'm having trouble adding multiple icon files to my application's info.plist file. I've read the docs on Apple's site, and I've read many of the articles here on StackOverflow, but something isn't quite right.
When I open my info.plist file and click the "+" button next to the entry for "Icon File", I make an attempt to add an entry for "Icon files" (notice the added "s"). This entry does not come up in the dropdown list, however. And when I switch the view to "Show Raw Keys/Values", only the CFBundleIconFile shows up. The necessary CFBundleIconFiles (again, notice the "s") does not show up in my dropdown list.
Is there a setting in XCode I need to set to get these new values to show up? I'm running 3.2.6 with SDK 4.3.
Thanks!
If I follow correctly, you're having issues with enabling multiple icon files and their respective resolutions? Apart from setting the main one inside your .plist (as you're using XC3, whereas XC4's interface allows for retina and non-retina selections built in) the others simply need to be in the same place as your main Icon.png file.
This might further help you:
iPhone icon size
I'm making a game and writing save files into the document directory on the iPhone.
Is there a way for me to retrieve these files from the actual device? I know I can find the ones saved from the simulator.
You can plug the phone into your Mac, and open Xcode and then Xcode's Organiser window.
From there, you can select your iPhone from the device list on the left. This will show the details of your iPhone, (provisions, installed apps etc).
You should be able to see your app in the list of installed apps, with a disclosure arrow next to it ( > ). Click that and it'll expand to show a package icon with the text Application Data, and a "download arrow" icon to the right.
Click the download arrow and it'll ask you where to save the data.
The result is a folder containing the Documents, Library and tmp directories from your application.
Hope this helps.