Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
i have a project with 179 xib files(ipad app).so we got memory pressure after 10 minutes once it launched.can anyone help me what should i do to solve this memory issues..i can create views programmatically, but i know it wont help me.because it will also take same memory..
At the first page it will take 250 MB to load and when i going to the inner pages memory usage getting increased.Memory is allocated at the first time when entering into a particular view controller,but when i pop from that view controller and push again to that,it is not taking additional memory.
thanks in advance..
You'll have to run the app in instruments and profile it for memory leaks / allocations to see whats happening. Otherwise we're just stabbing in the dark here at guessing what it could be.
Profiling the app really needs to be your first step here.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have an application that when it launches in Airplane mode it hangs. The application has a large set of code. I have added breakpoints in many areas and have been unable to determine the method or line of code that is causing the slowness. In visual studio using C# when an application is running you can hit pause and the debugger will be at the location of code currently executing during that moment. When hitting pause in xcode, the debugger stops in assembly code. What can you guys recommend to find the line of code or method that is causing slowness in my app?
Instruments is the the right tool for the job. Exploring the call tree will tell you where your program is spending most of the time. It's quite intuitive even if you don't have much experience with it.
Also, as other have suggested you can check out this tutorial.
Use NSLog strategically and note the last console output shown.
Doesn't matter how large your codebase is if you narrow it down like a binary search you'll have at most log(n) (no pun intended) number of debugging statements.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Iām have small app that simulate physics (box2d) and sending network data using pub nub.(Realtime sockets framework)
The issue is, when pubnub send the data, the sprite object (which get simulated by box2d) is stopped for a little and then continue.
This happen every time data is send.
I tried to it in another thread, but it continue to happen.
Any advice?
xCode 5, cocos2d 2.1
Update: FIXED.
Disable all logging
https://github.com/pubnub/objective-c/blob/master/iOS/README.md#logging
Disabling all logging fixes the issue! https://github.com/pubnub/objective-c/tree/master/iOS#logging to see how its done. Ping us again if any issues arise!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem ā and include valid code to reproduce it ā in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
i was creating an app that have sliding menu. it reads data from rss using xml parsing and reads data from dashboard using JSon.
my problem is that i got EXC_BAD_ACCESS in main.m and in debug area, there is no exception log...
features are works perfectly. but suddenly app crashes with this exception.
am using Xcode 5 with arc.
is this any kind of memory issue. how can i resolve this?
i read some article related to memory management. but that are not much helpful...
pls help me....
You can try to add "Symbolic Breakpoint" and check where is the problem
This is instruction how to set breakpoint in xCode 5
Too little information to solve problems
This could be because:
The pointer used to point to memory that was ok, but its chunk was deallocated.
The pointer is corrupt.
Read this.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm trying to create an app in which i have information set up with-in the app and when the user searches for the information it displays it on the screen. So for example say you search for "Hamburger" in the app; the app looks into it's information and displays it.
Can anyone explain to me how to go about doing this or at least point me to a source that can.
Thanks
The built in framework for doing this would be UISearchBar and UISearchDisplayController. There are many tutorials our there to get you started for using these controllers (here, here and here).
Of course there are many custom ways to accomplish the same tasks, but this would be a good place to start if you are just getting started.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How do you clear a Core Animation cache programmatically if any. With time, my app's performance gets very slow and the profile instrument tells me it's because of Core Animation. I was hoping if it will be possible to refresh core animation in my app from time to time.
I believe it is not a cache issue, even its if you mess up within this area you will have another issue, I suggest to run the profiler and check if you have a leak somewhere, make sure you are releasing all your ivars porperly, use
CGImageRelease(cgImage), CGPathRelease(path), ..etc
plus take a look here and here also