ios

1347 errors in iOS SDK 4.1

Hi, I had tried to build my iPhone app and got 1347 errors! What did I do wrong? You can download a txt file with my errors here: http://www.mediafire.com/?jlabh2ms21z6r24 Sorry, I had to upload a file, because of limited characters... Did any one else had the same problem and can help me? esanits ...

Creating nice looking fonts with "blurred" borders in Cocoa Touch / Core graphics

Hello, I would like to draw a nice looking fonts in Cocoa Touch (by "nice looking" I mean white font with blurred black border that looks like shadow) The question is either: Is it possible to display bitmap fonts in coca touch Is it possible to render a border for a font (for each character) ...

How to programmatically detect Game Center?

I'm adding Game Center support to my game. Because my game can run on iOS versions back to 3.0, I want to have it fallback to just saving achievements and leaderboards locally in the absence of Game Center. Right now, I have this: + (BOOL) isGameCenterAvailable { Class playerClass = NSClassFromString( @"GKLocalPlayer" ); if( playerC...

Possible to use UIActionSheet from Application Delegate?

I have a common UIActionSheet which I use across about 10 different view/view controllers. I'm wondering if it's possible to use UIActionSheet from the app delegate in order to prevent code duplication? So far my attempts to use an action sheet from the delegate haven't worked, I suspect my problem lies when calling the showInView metho...

What iOs version apps are accepted in App Store

Hi, My app is currently in version 3.2.3. What version of iOs apps are currently being accepted by Apple. Links? ...

set delegate in objective-c on iOS

- (id)initWithDelegate:(id)delegate { self = [super init]; if (self) { _delegate = delegate; } return self; } Is it generally recommended to pass in the delegate in the init method? what about in another method that will be called first? Also do I need to set _delegate to nil or release in the dealloc or v...

Changing current view in a uitabbar application iOS iPad

UIViewController *newView = [[UIViewController alloc] initWithNibName:@"NewView" bundle:[NSBundle mainBundle]]; tabBarController.selectedViewController = newView; Why doesn't this work? ...

CoreData Relationships Lazy Load?

When I have a CoreData entity named, say, 'Book', which has a one-to-one relationship with another entity ('Bookmark') would I need to insert both an instance of 'Book' and an instance of 'Bookmark' into a managed object context, and manually assign the relationship? If I perform the following code to instantiate an instance of 'Book'.....

performance of iOS apps when compiling in debug or release / distribution mode

What are some performance differences when compiling your code in these mode? debug release / distribution are the default settings optimized for app store (distribution)? what are some ways to optimize performance even more by tweaking the settings? ...

How can I make my iOS app show in spotlight when search for a variation of its name?

I have an iOS application which has an abbreviated name, but I would like to be able to search for the app in spotlight using either the full or abbreviated name. Is this possible? ...

Hide the cursor of an UITextField [Edited with a solution]

Now we have a UIButton styled as a combo button and custom methods to show a UIPickerView like the keyboard does. In our views with editable controls we detect if we are editing an UITextField or a combo button and then shows the usual keyboard or the picker in our custom way. But since iOS 3.2 UITextField has the inputView property and...

UIView mysteriously expand by 1 pix when added to as subview

I created a custom "component" made up of UIView and it gets added as subview on any visible view. What I found strange is that when it get added to a view the second time, the width got increased by 1 pix. This caused a problem when it expanded the background image and causes the image to blur out. Any ideas why a view will get expande...

iPhone / iOS popViewControllerAnimated Does not refresh screen

Greetings, I have a strange issue when calling .navigationController popViewControllerAnimated:YES from an NSOperation where the screen does not properly update and leaves the popped view visible but apparently deallocated. Details: I have a list view that accesses a local sqlite database. When tapping on a record, it displays that r...

UIModalPresentationFormSheet on iPhone

How can I make a Modal View's presentation style UIModalPresentationFormSheet (or something what looks like it) on an iPhone? Thanks in advance! ...

Getting strange debugger message: Assertion failed: (cls), function getName: what is this?

Since I upgraded from Xcode 3.2.3 to 3.2.4 and iOS 4.0.1 to iOS 4.1 SDK, when I set a breakpoint in my code and single-step over instructions, at each step, the debugger will spit one or more of that line: Assertion failed: (cls), function getName, file /SourceCache/objc4_Sim/objc4-427.1.1/runtime/objc-runtime-new.m, line 3939 It doesn...

Getting the rect of the rotated view in willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:

I am trying to animate between portrait and landscape orientations by hooking the various autorotation methods in UIViewController. Due to some subtleties of my view hierarchy, I'd like to set the frame of a child UIScrollView in the first half the animation and then scroll into position during the second half. This requires knowledge ...

iPhone/iOS SDK: Autorotate main view, but not child view?

Here's what I'm trying to do. I have a single view ("primaryView"), controlled by a customized view controller. primaryView contains a scrollview, which contains an image. Sitting on top of the scroll view (NOT inside it) is a small view ("buttonsView") containing a few buttons. Basically, when the user rotates the phone, I want butt...

Turing off functionality dpending on device iPhone, or iPod touch

Hi, I have what i thought was a relatively simple question but i cannot find an answer to it yet. I have an iPhone app that uses GPS on one of its screens. I want to disable this screen using code when the app loads,so disable it when a iPod touch is being used. This is so it can still be useful on a iPod touch as there is a lot of funct...

Bonjour to JmDNS from iOS: What's the name?

I'm sure I'm just a few letters away from getting this to work, but maybe not... On the server-side, I've got this (Java); ServiceInfo info = ServiceInfo.create("_mjdj._tcp.local.", "foo", 1268, 0, 0, "path=index.html"); jmdns.registerService(info); This works perfectly with my Java client or a Bonjour Browser (service shows as "_mjd...

How to get the active view in an iOS application from the app delegate?

Hi - how can i get the currently active view (the main view currently being viewed by the user) from the app delegate for references sake? ...