Xcode screen won't update until sound file completes - xcode

My app is supposed to change the image file of a UIImage with a button push.
Then a sound file is supposed to play.
But the screen doesn't update until the sound file is finished playing.
Any suggestions would be greatly appreciated.
I've tried adding a delay, but I can't get this to work right.
Thanks.

This sounds (no pun intended) like you have not multi-threaded the code for playing the sound and changing the image. Hence your display is not updating until the sound has finished and the run loop can update the display.

Have you implemented a [audioPlayer prepareToPlay]; before hand?, I've noticed a slight "glitch in the matrix" when you try to play the sound for the first time.
Can you preempt the file to play? e.g. doing it at running at viewdidload?
btw...is the image in the button or somewhere else?
Regards
JimZ

Related

How to automatically advance a slide after a video is done playing in PowerPoint for Mac

I would like to automatically advance a slide in PowerPoint for Mac after a video on that slide is done playing. This seems to be possible in PowerPoint for Windows but not for Mac.
I am not a Mac user:
here is? if it helps you...
You will need to set the SLIDESHOW (tab) to Use (Rehearsal) Timings. This will automatically advance the slide after the last animation action. You could, of course give it some seconds to wait, but it sounds like you just want to advance the slide.

Why is Atom behaving like this?

whenever I hover over other items the appearance of atom worsens. A pic is attached here . Please help The Image
Not only the software atom, but Epic games also shows the same problem. The video of it is attached here
In addition to that, there is one more application thats behaving like this. I dont even know whats this problem actually called. Please help me solve this problem. Thank you.
It turned out the graphics drivers were not setup correctly. Now that I have reset the settings, everything works just fine and the white lines have disappeared from everywhere.

gif image not looping

I have created a gif in photoshop. It has two frames displayed for 4 seconds each and is on a loop forever.
For some reason the image freezes on the second frame and does not continue to load in some browsers (The exact information about browsers and / or versions is unclear at the moment but it has happened in the latest version of chrome).
The image is embedded in the code in the standard way, no javascript is used and nothing is changing the element.
Does anyone have any idea what could be causing this? Everything I have searched for so far seems to result in people saying "Oh, I forgot to put make the gif loop forever" instead of any real reasons for causing this problem.
Thank you for your help!
Edit: Sorry I didn't think about putting an image in the original post. He is an example of one advert which doesn't seem to work.
Because the current image displays correctly in everything I've tryed so far, try to create image in different application.
Some applications you may try:
GIMP - tutorial
Some freeware crap.
I'd vote for GIMP. Its complicated, but its free and it has wide user suport.
If you still fail...
Now its time to check the enviroment. First, open the image on different machine. Maybe there is something wrong with your browser instalation. In this case, reinstall.
Try to upload on different server. Maybe your browser does not correctly decompress deflated data or has other communication issues.

xna wp7- photoChooser crop

hey when i use the pixelHeight/Width property ing photoChooser
a. only the height is adjusted
b. the photoChooserTask.Completed event doesn't work.
does anyone have some experience with it and know the answers?
thanks
In the emulator, the PhotoChooserTask crop is known to fail in the older version of the SDK (pre-NoDo) and the Completed event will never be triggered. On the phone, however, it works correctly.
Showing your code will also help, since you might be missing something obvious.

iphone 4 - Application doesn't show image?

I've had this app on app store with no problem until iphone 4 came out.
My home page has an image covering the whole screen.
UIImageView added in interface builder, and image path added in interface builder.
In all phones this image shows up; however, the image does not show up in any iphone 4, and instead the user sees a blank screen like the following:
Anybody knows what's causing this? thanks
.
I only have 1 set of images with
normal resolution
This problem only happens to one of
the images in my application which is
the background for my home page
the graphic file should not be
corrupted because the exact same
image works for all other iphones and
itouches
my image is a jpg file
image size is 480x270, which in
interface builder i make it 563x330 to display only a part of it
I have no outlet to this uiimageview
so it cannot be changed in code
With devices with the new retina display, pixel sizes are different and you have to check for the following, in particular:
Do you provide two alternatives of the image, one at old resolution, one at double resolution (named myimage.png and myimage#2x.png)
If not, does your image scale up well in size with CoreGraphics's algorithms (there are some pathological cases, though you'd have to be quite unlucky)?
Have you checked what happens (at both resolutions) when your UIImageView size changes?
Is it just one image, or all?
Is your graphics file corrupted?
It's hard to tell if it's any of these points, or something else, because you provide so damn little detail, that I stick to generic things. Comment below (or edit your question) if you need more help.
I've got two things to add to FXs thorough answer:
Considering the information you added, I would take a look at your code for setting up that UIImageView. Perhaps you use some sort of detection code or something which wasn't implemented correctly.
Would you mind sharing some code snippets?
According to Apple's documentation, you don't need to provide the ".png" extension as of iOS 4. Perhaps that is causing the problem.
Again, code snippets would help here. Specifically where you deal with loading up your image file.
EDIT:
Try re-saving the image and replacing it. I've occasionally corrupted files in Photoshop. This has to do with file extensions and how Mac OS ignores them, but Photoshop still uses them.
Also, it could have to do with where the image is in your XCode project. Check what Group it is in. Make sure everything is in place and then Clean and Rebuild. Remove the app from the iPhone4 (reboot) and try reinstalling.
I hope this helps.
Good luck!
If this was my code, I'd write a tiny app just to display the image in question. If it still fails it would be easier to get help debugging the problem.

Resources