My app consists of 3 views. I've defined 3 helper methods in the AppDelegate to switch between each view (so that each view can call the other), which look like this:
-(IBAction)goToView1 {
if ( view1 == nil )
{
View1 *thisView = [[View1 alloc] initWithNibName:@"View1" bundle:nil];
view1 = thisView;
}
for (UI...
Hi,
I've created a simple iPhone app which has two .xib files. In the app delegate at application did finish launching I display the first .xib file by calling:
[window addSubview:myView];
and I do the same on an IBAction for a UIButton to change the view to myView2.
What I'm finding is that there's a white bar of around 10 pixels wh...
Hi,
I'm checking for leaks in Instruments, and I've set to check every second, but no leaks are appearing.
I'm sure there must be some in my app, is there anything which could stop these from appearing? Is there a good way I can create a leak so that I can test if leaks do show up in Instruments?
Thanks!
...
Howdy,
I have a few questions about Xcode and interaction with GCC 4.2.1:
It doesn't seem as if Xcode Target Properties inspector exposes all possible GCC options. Is this correct?
More specifically, I'm interested in setting the "mfpu" option, as mentioned in the arm_neon.h intrinsics header. Is this possible or supported? Or perhaps...
i want to store audio files(any of these formats mp3,wav,and iphone supported) in database
and play them in iphone...any idea how to do this?
...
I have refactored some UIView sub-classes into a static library. However, when using Interface Builder to create view components for a project that uses the static library I find that it is unaware of the library classes. What do I need to do to make the class interfaces visible to Interface Builder?
Update: The correct answer refers to...
So I'm developing and iPhone game right now and everything has been working just fine when I test it on my first gen iPod touch. Last night, I added in some NSUserDefaults stuff to save a few variables for it. I ran it on the simulator a few times and it worked perfectly, but when I built the app and put it on my iPod, all I got when I l...
Hello, I have been developing on the iPhone platform for a very short time, and already I've had my fare share of syntax errors, and now memory issues.
In my iPhone app an image view is animated multiple times by different buttons(6), and this works well on the iPhone without problems, but when I tested my app with instruments for the f...
I'm trying to use a C++ library (CLucene) from my Cocoa Touch iPhone application using Xcode 3.1.3. Everything works fine when I run in the iPhone simulator, but things get strange when I run on device. It seems like pointers aren't being passed correctly from the Objective-C++ code (my app) to the C++ library (CLucene).
While debuggin...
Hello, I've cleared my app of leaks using the leaks tool, but I still notice that the objectalloc tool jumps up in the number of objects allocated and footprint when I switch views.
I'm especially seeing high numbers of:
GeneralBlock-16 with mostly Foundation responsible with caller NSLogv
and
GeneralBlock-0 with mostly QuartzCore re...
I am developing an Messenger application where i am trying to use an peer-to-peer online connection.
But for that i have to present my own user interface to configure the Internet connection.
how to do it?.. Please help me...
...
Hi,
I read the different topics that deal with that kind of problem, but I still have no answer.
Here is my problem :
In my header file, i have this :
int cl, ch, _a = a, _b = b;\
__asm__ ("smull %0, %1, %2, %3\n"
"mov %0, %0, lsr %4\n"
"orr %0, %0, %1, lsl %5\n"
: "=&r" (cl), "=&r" (ch)
: "r" (_a), "r" (_b...
i have a view like iphone's springboard . i created it using a scroll view and buttons.i want to disable horizontal scrooling on that view.i want only vertical scrolling.how do i do this?
...
I have a device/debug build that works fine. When I build for release and distribute onto the device, I get this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UILabel setWidth:]: unrecognized selector sent to instance 0x1605a0'
It is occurring in cellForRowAtIndexPath:
cell.videoNa...
I have 2 errors in XCode and am trying to figure out what they mean.
The 1st one:
2009-06-30 18:56:27.998 Spark[4584:10b] Error setting value for key path filterPredicate of object <NSArrayController: 0x1482c0>[entity: group, number of selected objects: 1] (from bound object <NSSearchField: 0x143f20> with object ID 1387 in Nib named...
Hi Guys,
Sorry for the long post....
I'm trying to understand if the behavior I'm getting on my app is "normal".
I have an app developed against the 2.0 sdk version (i.e. to make sure max #of devices can run it, as I don't use any "special" 3.0 features I tend to think the lowest denominator must be the best choice).
So In Xcode (lates...
Hi,
I get the chromium source and I am able to compile it fine under MaxOS X.
My question is why every time I power off my laptop and then re-open my XCode project and click 'Build and Go (Debug)', XCode recompiles EVERYTHING (even I have not modified any file).
Is there any way to config to compile when needed?
Thank you for any sug...
Hi,
Is there an easy way to disable all Breakpoints that in Xcode?
I tried:
* high-light all breakpoints
* click 'Deactivate'
That does not disable all of them?
I need to click one at a time, and unclick the 'checkbox'.
I wonder if there is an easy way to disable a bunch of them altogether.
Thank you.
...
i have added a splash screen to my application by adding Default.png.
the splash screen works fine in the simulator but not showing on real device
...
Hi,
What's up with the NIB->XIB change somewhere between Xcode 3.0 to 3.1?
Is there any difference with this name change that I should know while I go through tutorials that mention nothing but the .nib file?
...