How to scan barcode(generated using ZBar SDK) using iPhone simulator? [duplicate] - ios-simulator

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
zbar sdk not working on iphone simulator by using camera simulator
I want to test my barcode scanner using iPhone Camera.
I'm using ZBar SDK for my barcode scanning.
I have a scan button for this.When I click on Scan button,its showing me the message,"Camera simulation, tap and hold with two finger to select image".When I'm doing this,its showing "No photo" in another view.
Could any one plaese tell me how can I select an barcode image and scan it using simulater?
Thanks.

Do you have any images in the simulator to test? If not, images can be added to the simulators photo library two ways.
Drag and drop an image from Finder into the simulator. It will open in Safari and you can press and hold the image and an action sheet will pop up asking you to save.
Go to Safari directly on the simulator, navigate to the image you want, and save it the same way as in step 1.

Related

Assigned Script to a Multiple Drawings Does Not Run on Phone Sheets App [duplicate]

This question already has answers here:
button click is only working on Windows & not working on Android mobile sheet
(2 answers)
Closed 2 years ago.
I hope you can help me with this. I have assigned a script to multiple drawings (as buttons) in Google Sheets and is running perfectly on PC. When I try it on my phone, the script does not run, but rather gives an option to edit. What should I do, please?
The Google Sheets mobile apps doesn't support using drawings as buttons (assign a Google Apps Script function).
Regarding what you should do, you should look for other ways to call your functions from a mobile apps like using a edit trigger.
Related
button click is only working on Windows & not working on Android mobile sheet

I am looking how to Go Back in iOS Simulator

I am looking for the keyboard shortcut for Going Back (to last screen) using the iOS Simulator.
I have tried searching, I didn't find anything.
I know this thread is old, but am gonna answer, it may help some on.
I dont know about a keyboard short cut to go back to the prev screen but on my iphone 12 simulator, I am swiping from the most left part of the screen to the right horizontally. Its working.
The iOS Simulator just runs iOS, so the way you would "go back" in the Simulator would be the same way you do on device. If you designed you application to "go back" with cmd-b (for instance), you would issue cmd-b in Simulator while your simulator device has focus. If you go back with a given swipe gesture, the same gesture should work in the Simulator.

iOS 9 status bar appears below black bar

What is happening to my app in Xcode 7 / iOS 9?
The whole screen looks condensed, as if an iPhone 4S app is displaying on an iPhone 6. It looks normal in the iPhone 4S simulator.
I thought it was a problem with the auto layout constraints in the main storyboard, so I eventually deleted everything apart from the root view in the root view controller (blue screen), and there's still a problem with it.
I tried enabling size classes, thinking that this was the problem due to previously being disabled, but the result was the same.
Is anyone else getting this problem in their existing apps running in iOS 9?
Target>General>Launch Image Source>use asset
it will create new asset named BrandAsset, place your launch images over here. Create LaunchScreen.storyboard if already not existing and select it to Target>General>Launch Screen File.
Thanks for the answers. They pointed me in the right direction, as I wasn't aware it was anything to do with the launch screen.
I found out I had no LaunchScreen.storyboard file. Digging around in the docs led me onto this:
New projects are created with a launch screen storyboard file called
LaunchScreen.storyboard. Alternately, you can create a new launch
screen file using File > New, selecting the User Interface category,
and choosing a file type of Launch Screen.
It was weird that I had to do this, as I only started developing this app in iOS 8, and apparently this was a change in iOS 8. But with iOS 9 Apple are obviously getting more aggressive with deprecating incorrectly set up projects, and the consequences were that it was bug to my app.
The positive I guess, is that all of this forced me to at least create a launch image instead of having nothing.

How to add images to iPhone Simulator?

I have used UIImagePickerController with UIImagePickerControllerSourceTypePhotoLibrary, but it says "No photos".
Where does the simulator get the images from? Where should I copy the images so that they are displayed in the simulator?
Now you can do this easily just by dragging and dropping the images in to Photos app in iPhone Simulator.
Run the simulator
Run Safari on the Simulator
Drag a picture onto Safari running on the Simulator, this opens the image.
Click and hold on the image, or tap on the share icon in the bottom tool bar.
You will get an alert asking if you want to store the image to your phone
If someone gets an error similar to
One or more media items failed to import:
/Users/Username/Desktop/Screenshots/Screen Shot 2021-07-09 at 12.05.29.png: The operation couldn’t be completed. (Cocoa error -1.)
You can try to move the picture to the user's root folder. In my case /Users/Username/Screen Shot 2021-07-09 at 12.05.29.png, and I was able to drag and drop my image from Finder to the simulator.
Open photo on simulator. The gallery will open.
Drag the pic you want into the simulator gallery.
That's it. The pic is now on the gallery.
You can drag files like images or video from your local mac machine to simulator once you open the photos or video list of the iphone.
But make sure you're uploading from Documents folder else it won't get uploaded if you drag files from other folders.

Windows Phone 8 Simulator shows numbers on right side [duplicate]

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
What are these numbers on the right side of my Windows Phone Silverlight app?
I have created a Windows Phone 8 application using the default template. However, when I run it the simulator displays a lot of numbers on the rights side of the simulator. How can I remove these numbers?
The numbers displayed are actually a framerate counter. The default project template enables the framerate counter when a debugger is attached. To hide the framerate counter, go to App.xaml.cs and remove (or comment) the following line:
Application.Current.Host.Settings.EnableFrameRateCounter = true;
Of course, you can also set the value to false.
When you have done this, build and run your application again and the numbers won't be displayed anymore.

Resources