Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
iOS Development
NSTimer and UIPicker sounds
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xstep" data-source="post: 1322253" data-attributes="member: 11647"><p>What line is the crash occurring on? Knowing that is needed to diagnose the issue.</p><p></p><p>I'd also place the invalidate immediately at the start of the block it is in, not at the end.</p><p></p><p>You've hardcoded 1 in the objectAtIndex, but if there is only one object in the array, you'll get a crash. How does arraySound get filled?</p><p></p><p>I'm not sure what you are asking when you say "Any suggestions of tips on how i can get this to function with multiple arrays?". And I wonder what does "...multiple files. They are all arrays." mean.</p><p></p><p>A tip. You can get rid of the buf NSString variable by doing the following.</p><p>[CODE]</p><p>countLabel.text = [NSString stringWithFormat: @"%d", count];</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="xstep, post: 1322253, member: 11647"] What line is the crash occurring on? Knowing that is needed to diagnose the issue. I'd also place the invalidate immediately at the start of the block it is in, not at the end. You've hardcoded 1 in the objectAtIndex, but if there is only one object in the array, you'll get a crash. How does arraySound get filled? I'm not sure what you are asking when you say "Any suggestions of tips on how i can get this to function with multiple arrays?". And I wonder what does "...multiple files. They are all arrays." mean. A tip. You can get rid of the buf NSString variable by doing the following. [CODE] countLabel.text = [NSString stringWithFormat: @"%d", count]; [/CODE] [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
iOS Development
NSTimer and UIPicker sounds
Top