Hi,
I have a CoreData model in my iPhone app, which is linked to a SQL Database with more than 50k records. When I generate the records classes, Xcode uses the @dynamic directive for properties. I have a property named "ISFAV", NSNumber type (CoreData does not use BOOL or Integer, it uses object types). Being short, I change the ISFAV pr...
Hi all,
I have an iphone app with a modal view. The app crashes when the modal view get dismissed.
As soon as the modal disappear at the bottom of the screen, and consequently the original view is shown behind, then the app crashes with no entry in console view.
I have tried to switch debugger on and I discovered that the app just run ...
I am having trouble using a UIScrollView on the IPhone when dealing with rotation. I used Apple's PageControl example as a model, but am creating the scrollview myself in a View.
1) The scrollview works as expected when loading in default Portrait, scrolling left to right horizontally
2) Out of the box, when rotating CW and reinitializ...
Hello,
my application has a UIScrollView with a UIView as subview. Both are the same size.
The scrollView contains a large image and the subview is a "overlay" view that holds markers that are set when the user taps at the large image (a map).
It is basically a simple app that allows to set markers on certain locations on a map.
so far...
Another puzzler. I have an NSArray (iTours) containing 3 Objects and a retain count of 1.
This Array is released in the object dealloc method as follows:
- (void)dealloc {
NSLog(@"retain count für iTouren: %d", [iTours retainCount]);
[iTours release]; // triggers EXC_BAD_ACCESS
[super dealloc];
}
The console window sh...
And is it possible to mix a just a part of a song with a voice from microphone at all?
...
I have the following code:
NSInteger phoneCount = ABMultiValueGetCount(phones);
NSMutableArray *phoneKeys = [[[NSMutableArray alloc] init] autorelease];
NSMutableArray *phoneKeyValues = [[[NSMutableArray alloc] init] autorelease];
for(CFIndex i=0; i < phoneCount; i++) {
//NSString *label = [(NSString *)ABMultiValueCopyLabelAtIndex(...
I'm trying to display an UIImageView within a tab on an iPad. I hide the tab bar and I want the UIImageView to take up the entire screen, ie be full screen. I try resizing everything in sight and the image will not occupy the space used by the tab bar.
I've tried debugging, printing the frame for each view going up the view hierarchy. Ev...
I need an equivalent to C's pow() function that will work with NSDecimalNumbers. With pow you can use negative numbers e.g. pow(1514,-1234), with NSDecimal's decimalNumberByRaisingToPower: method, you are forced to use an NSUInteger which seems to require a positive value.
I'd like to be able to do something like this:
[decimalNumber d...
I'm using CATiledLayer to render a heavy pdf page inside a UIScrollView that is used to handle zooming and spanning..
The method below is called every time a Tile need to be drawn and I regret that I have to paint the whole pdf every time. I hope that behind the scene the CATiledLayer only render the part that it needs but nothing is l...
ok, i set some .png files image as uimage in my table cell. they show up nicely when i run them using iphone simulator. when i run them in my device, they up not show up. what seems to be the problem?
i only "error" i got is unable to debug when i install my app to my device, which shouldn't be a problem as i never set for debug.
does ...
Hello,
I've been looking at the Facebook Connect for iOS, but I could not find the solution which could fulfill my requirement. I was able to create a simple log in window, user can put his/ger credentials, but when I run my iPhone app again the user has to login again.
So far I've been able to get this:
I would like to be able to g...
Hello,
in many iPhone apps I could see UITextView with rounded corners. Is there a simple way to achieve this? or do I need to create a custom UITextView? any links to examples showing how to achieve this?
Thanks!
...
I have a TabBarController app with 4 views.
I've put on all the 4 viewControllers the autorotate method returning yes :
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return YES;
}
Thanks to this, now when i rotate the iPhone the rotation works, and even the TabBar is rotated.
In e...
I have a project with the following:
navigationController:
usersViewController (UITableViewController) [rootViewController]
photoViewController (UIViewController)
chatViewController (UIViewController) (It has a tableView as a subview)
I'm also using the ZTWebSocket code to make a webSocket connection. I'm choosing to define & connec...
There seem to be lots of answers for cross-platform frameworks for devices (iPhone + Android), and cross-platform frameworks for desktops (Mac + Win + Linux). This is a different question regarding a suitable framework, methodology, template app, tutorial, or just helpful hints, on developing native apps (not just web apps) that are cro...
I have a small bug in my client app that uses NSURLConnection. I have tracked it down to an unexpected connection keep-alive that seems to confuse the web server (probably a bug on the server side). The workaround would be to force-close all outstanding connections at a certain point. Can I do this somehow with NSURLConnection, i.e. some...
Hi,
Is there a method or some way to display the zip code of the current location? Maybe through CLLocationManager or through coordinate points (latitude, longitude).
Thanks,
Kevin
...
I have a simple entity called "Store" built in Xcode's data modeler for use in an iPhone application. I also have a class (Store) associated with it and I've been able to store and retrieve data using CoreData without any problems.
Now I realized that I want to have a relationship to another entity (Aisle). There is already a one-to-o...
I'm embedding one or more youtube video urls in a UIWebView using tags as commonly found in samples.
Clicking the thumbnail launches the YouTube video player. When tested on an iPod Touch, the video opens in landscape format, and clicking Done closes the Player and returns to the app as desired.
When testing on an iPad, the Player ope...