iphone

iPhone Dev - Where to put lazy loading code

I already had a question like this, but I already deleted it anyway. I have very simple app that has a root view controller and it switches between two other view controller views. So in my root view controller, It lazy loads the instances of the two other view controllers. Each time the switch button in the toolbar is pressed, the curr...

stuck on current location - iphone sdk

I'm trying to get the current location using the iphone sdk. Here is the code: http://pastie.org/572062 here is the error on build: Building target “Send2iPhone” of project “Send2iPhone” with configuration “Release” — (2 errors) cd /Users/pswenson/dev/send2iphone/iphone_code/Send2iPhone setenv MACOSX_DEPLOYMENT_TARGET 10....

Objective-C NSString: strange characters when logging

Hey all, I'm a total noob when it comes to Objective-C / iPhone development. I'm trying to pull in text from a SQLite DB. I have a while loop that looks like this: while(sqlite3_step(selectstmt) == SQLITE_ROW) { And within that loop, this prints to the log just fine: NSLog(@"Text: %s",sqlite3_column_text(selectstmt, 1)); This does...

Biginteger in Iphone and related funtions

I have a RSA Exponent key value which is supposed to be a biginteger but i have it in NSString/NSdata with full value in(UTF8 encoded) as Part of RSA encryption , i need to do the following in the Iphone Env I need to find the bit length of the above exponent value I need to do arithmatic operations on exponent and modulus values incl...

check mark at table view in iphone+objective c

hi... i m trying for apply for check mark in table view, but it is not working, if i checked again at that cell again then check mark apply. but not apply at new selected cell. any one there who help me.... thanks aamir. i m using following code pragma mark - pragma mark Table Data Source Methods (NSInteger)numberOfSectionsInTableView...

UIControlEvents and subclassing UIControl

I have a UIControl subclass for a custom slider type control (one that behaves differently from UISlider). At the moment I use my own target and action variables to send a message to the target whenever the slider value changes. But this doesn't play nice with Apple's UIControlEvent constants. I wasn't sure if I should use these, and if ...

Mod Player for iphone

I'm wondering if anyone has knowledge of any kind of modplayer library for iphone? I've searched, but couldn't find anything. ...

What'S the difference between these two initialization snippets? Which one is correct?

While looking through some code, I found two different code snippets for initialization. I don't mean the method names, but the round brackets. This one has just two of them: if (self = [super initWithFrame:frame]) { That's the way I do it all the time, and it seems to work. Now in an Apple example I found this: if ((self = [super i...

UINavigationItem setHidesBackButton:YES won't prevent from going back

Hi All! It's odd, I know, but even if you stated hidesBackButton to YES for the UINavigationItem associated with your view, you will be able to go back just touching the area that was meant to be a back button. Sharing my solution... (more to come) ...

Address Book and Map Kit

Here is the question. I am writing app for iPhone OS 3.0, where I want to use Map Kit and Address Book together. I have a database of places( restaurants, for example) with name, location, phone, address and some other data. I list them in table view and when I choose some place I want to show Address Book Contact(with the help of ABUnkn...

NSXMLDocument class in iPhone Device 2.2

hi i developed one iPhone application, i have used the class "NSXMLDocument" it is working fine in simulator 2.2. but when i select Device 2.2 it is not woking.. i got the error message that " error: 'NSXMLDocument' undeclared (first use in this function)",, any idea to solve this .. by Abjal ...

SSLHandshakeException unknown_ca apns java

I am trying to implement a standalone application for iphone; for which I wish to use Apple Push notification for iphone clients. I am getting javax.net.ssl.SSLHandshakeException: Received fatal alert: unknown_ca Following is my Java code to connect to apns gateway: int port = 2195; String hostname = "gateway.sandbox.push.apple.com"; ...

UIWebView not parsing xhtml files properly.

Hi all, this is my chapter1.xhtml file <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html [ <!ENTITY D "&#x2014;"> <!ENTITY o "&#x2018;"> <!ENTITY c "&#x2019;"> <!ENTITY O "&#x201C;"> <!ENTITY C "&#x201D;"> ]> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Alice's Adventures in Wonderland by Lewis Carroll</title> <link...

How to conform to a self-made protocol?

I have a class with an delegate property. Anyone who wants to be a delegate must conform to a protocol. I defined everything like this: #import <UIKit/UIKit.h> @protocol TheDelegateProtocol; @interface MyClass : UIView { id<TheDelegateProtocol> theDelegate; } @property (nonatomic, assign) id<TheDelegateProtocol> theDelegate; @e...

Reorder cells - Stop working

Hi, Suddenly, in editing mode i can't move the cells. Before i could. I didn't change anything. thx ...

How can I create a variable sized UITableViewCell?

I can't seem to get the text to actually span multiple lines. The heights look correct. What am I missing? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"StatusCell"] autorelease]; ...

PVR Texture Compression Tiling (exposing edge context)

I've got PVR texture compression working all happy and good in my iPhone game, but I've got issues when tiling multiple textures together. Basically, I've got a very large background which is split into multiple 512x512 tiles, all PVR compressed. Then they're drawn together to look like one big background image. The way PVR works, becaus...

Accessing Other views on Navigation Stack

Hi, So I have a UINavigationController which, obviously, contains all my ViewControllers. I have three. Root->View2->View3. So I was wondering is the following possible... When I'm 'in' View3 (and an instance of Root and View2 are sat on the navigation stack) is it possible for me to call any of View2 or the Root view's methods / se...

Which initialization method gets called in an UIViewController subclass, when it is initialized by a nib?

The App Delegate has an outlet property to the view controller, and the view controller is created in the nib. Althoug the -viewDidLoad method of the view controller gets loaded, it seems that it designated initializer receives no call: - (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)nibBundle { NSLog(@"iniwinib"); ...

How do I use a timing function within an animation on the iPhone?

Hi, I want to use a timing function lets say kCAMediaTimingFunctionEaseInEaseOut My aim is I have start point (X1,Y1) and end point (X2,Y2) and I want a ease function which will provide the easing functionality over this points range. Like varying the (X,Y) range and giving me a curve from start to end. How to do that in iPhone. Like ...