iphone

Behaviour of a searchDisplayController.searchResultsTableView inside a UINavigationController logic

I have a ordinary UITableViewController inside a UINavigationController. The former includes a searchbar which is connected to a search display controller. I use the standard behaviour, i.e. when the user enters any character the search results table view overlays the normal table view. Now, both table views act inside a navigation cont...

Can you swap the NIB file for a UIViewController that's already on-screen?

For instance: Create a new UIVC using initWithNibName, using "nib-v1" Display it, e.g. using [(UINavigationController) nav pushViewController: myVC] Change the NIB that myVC is using to "nib-v2" So far as I can see, this is the "correct" approach to app-design for a lot of apps, when paging through information where you need two slig...

How to setup Xcodes "debug/release target settings"?

Hi I have found a set of great macros here Objective C Macros I put the: #if DEBUG==1 #define .... macros in my header file. Now I simply can't figure out where to set DEBUG=1 or DEBUG=0 in Xcode so that it will define the macro when debugging and not when releasing. Hope someone can help me find the missing drop down menu:) Thank...

OpenGL ES Framebuffer weird mirroring when drawing

I really can't wrap my mind around this: Previously I couldn't get Framebuffers to work, but I've got it going now. However, there is this incredibly weird mirroring going on with the texture generated from the framebuffer, and I have no idea why. Basically, I will try to draw a texture at 0,0 using GL_TRIANGLE_FAN, and the texture appe...

Core Data error when deleting row in tableView

I have a UITableViewController managing a grouped tableView. The tableView is populated from a fetchedResultsController. If I click the Edit button in the NavigationBar, then select a row and click the Delete button, the row is deleted and all ends well. However, if I swipe to reveal the Delete button in a row and click the Delete bu...

addObject for one/many-to-many relationships in core data for iPhone

Hello everyone, I have the following 2 Entity’s in my xcdatamodel: ...

no route.h on the iPhone SDK

I am trying to build some code that is originally target at OSX/BSD/Linux for the iPhone. It uses struct rt_msghdr from route.h but as it turns out this header is not available in the iPhone SDK. Looks like the function tries to find the available bind addresses as a list of struct addrinfo. Does anyone have a suggestion how to proceed...

iPhone Error when myButton is pressed.

I am getting an error message displayed below when my button is pressed. I do not yet have any code inside my "buttonPressed" method although I don't think that has anything to do with it? Error Message: "terminate called after throwing an instance of 'NSException' Program received signal: "SIGABRT". UIButton * myButton = [UIButton but...

GKPeerStateAvailable for non existing peers?

Hi, used this website for the long time to find answers, now need to ask on myself! :) I have implemented multi player for my game using GKSession and client/server approach, not using peer picker (up to 4 player allowed). I have one big problem which I can't find solution for. If you disconnect/reconnect server peer quickly enough, ...

Emulate a slow iPhone

Hi all, I have an iPhone app (Objective C++). My beta testers - some of them, not all of them - are complaining of slow startup, 7 to 10 seconds. On my device (it's a 3GS), it loads in about 2 sec. On the device simulator - even faster. As things stand now, I cannot even isolate the bottleneck. Can I somehow slow down the simulator or ...

Is there a way to test an iPhone App on my iPod touch without registering with Apple?

Is there a manual way to load an iPhone App onto the iPod touch? ...

Command /usr/bin/codesign failed with exit code 1

Hi guys, I spent now 3 hours of searching for the above mentioned error: Command /usr/bin/codesign failed with exit code 1 Here is what I already did for trying to fix this: set the bundle identifier to com.server.pgmname set the code signing to "Any Iphone OS Device" set the Code Signing Identity to my Distribution identity. ...

Question about factory method object lifetimes in Objective-C/Cocoa (to retain or not...)

From reading the memory management docs in the SDK, I gathered that factory methods (static constructor methods) would typically be retaining the object for me and adding it to the autorelease pool? This would mean I have no need to retain & release an object as long as the pool does not get released before I expect? (Which should be at...

UIScrollView not showing scroll indicator

I have a UIScrollView which I create and size dynamically using... scrollView.contentSize = CGSizeMake(scrollView.frame.size.width , length); I then add subviews to the UIScrollView. I do have scrollView.showsVerticalScrollIndicator = YES; When scrolling the scroll indicator never appears. Even if I call [scrollView flashScrollIndic...

Objective C Path drawing to link buttons

Hi all, Does anyone have any idea on how to make a path drawing to "link" up two buttons like the iphone game Airline Conqueror? ...

How can I have tick marks in Core Plot with custom labels?

For my app's graph (line plots) it does not make sense to format the axis labels to tenths. It did not look like there was a way to change this without providing custom labels. I was able to add custom axis labels based on the sample code in this answer, but the labels do not have tick marks. Is this an issue (I didn't see anything...

request for member 'title' not a structure or union??

#import "RootViewController.h" #import "DetailViewController.h" @implementation RootViewController - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // UITableViewStyleGrouped table view style will cause the table have a textured background // and each section wi...

Accessing & Using the MobileWiFi.framework

For a personal project of mine, I'm trying to retrieve iPhone WiFi signal strength. I'm fully aware that this in the land of undocumented goodness, so please refrain from the "No Appstore" answers. :) Anywho, I've been reading up on previous WiFi Network Scanner Apps (WiFi Stumbler), but I'm afraid most (if not all) reflect outdated SDK...

NSOperationQueue not reusing thread on iPhone

I'm using iPhone SDK 3.1.2, and the following code shows the NSOperationQueue does not reuse the thread for each task. The code does not have any problems on Snow Leopard. - (void)applicationDidFinishLaunching:(UIApplication *)application { // Override point for customization after app launch [window addSubview:viewCon...

Can i use iphone's wifi to comunicate with my own wifi module?

Including data exchange. I can not find such api in apple doc site. If it is not open in 3.1.2 sdk ,would apple release it in sdk4.0? I've heared that google released wireless api on android earlier . Thanks! ...