Hi, I am using this code to add a background image to my tableview
myTable.backgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background.png"]] autorelease];
on the internet they say this code works, but it's not working for me
can someone help me please?
...
I am new to xcode and I'm having some difficulty adding a PDF file to my UIScrollView.
I already added pageControl and pageNumber as label.
Any idea?
...
I can use the Facebook iPhone API to authorize and publish posts, but I want the textbox on the dialogue view bigger, to display more text, instead of only showing 2 lines, as the screenshot:
Anybody know how to make this textbox bigger? Does it have to change the Facebook API code?
If the textbox is supposed to be short as the ti...
Hello all, I am currently saving images to the iphone's local space whenever I finish loading them. I was wondering if I need a separate thread to do that. I.e
The iphone can be requesting multiple images at the same time and when they are loaded, I call the save to HD method.
Since there are a lot of save to HD method being called a...
I've seen other apps are using a round icon for closing a view. The only similar icon I found is UIBarButtonSystemItemStop. But this presents only a rotated cross with a border (as always with buttons) around it.
I rather would like have something like a UIButtonTypeInfoLight. If this button is used, no border is visible. Also the icon ...
What’s the rationale behind the Cocoa exception policy - or why use exceptions only for programmer errors?
I understand that exception used to be rather expensive so one would not want to overuse them. But that changed with the modern runtime and it’s zero-cost exceptions. I also understand that the use of exceptions to do general contr...
Hi all
Well im trying to encrypt an string in objective c extending NSData with this method:
@implementation NSData (AES128)
(NSData *)AES128Encrypt {
char keyPtr[kCCKeySizeAES128] = {'\xe1','\xaa','\x9c','\x61','\x46','\x74','\x44','\x56','\xf0','\xe5','\x47','\x46','\x86','\xdc','\x95','\x77'};
NSUInteger dataLength = [self leng...
I am trying to improve the design of my App by using private methods. Coming from .NET I am a little confused because I am declaring these methods in the .m file but from other files they are still showing up i.e. they are still accessible.
.m file:
@interface NSContentWebServiceController (private)
- (NSString *)flattenHTML:(NSStrin...
I'm new to iPhone development and Objective-C. Using the ZBar SDK I've developed a basic app which scans a QR image from the photo album and outputs what it translates to.
I want to know if there is a way to take this output, determine whether it is a URL and if so open it in a web browser.
Thanks
Zac
...
I have a C array defined in my method as:
int c = 4;
int r = 5;
keysArray[c][r];
I have this for loop, which works, populating the keysArray as expected.
for (int row = 0; row < r; row++) {
for (int column = 0; column < c; column++){
keysArray[column][row] = [anotherArray objectAtIndex:0];
NSLog(@"array1 %@",keysA...
I'm wanting to make a CoreData entity called "Employees", some "Employees" could have a line manager (or boss).
In basic pseducode, it could be described as:
emp_id (PRIMARY KEY)
emp_name
emp_parent_id (INT *but optional as some people may not have line managers*)
Another example I could use is "articles" an Article could have a pare...
NSDictionary *attributes = nil ;
*attributes = [filemanager attributesOfItemAtPath:path error:nil] ;
fails with " ... error: incompatible types in assignment"
yet
NSDictionary *attributes = [filemanager attributesOfItemAtPath:path error:nil] ;
works.
My question is how to break the one line of code that works into two lines of cod...
I'm want to make a test app to record some sound and then modify the pitch.
Anybody able to gimme some advice what technologies on the iphone are the best (and simplest) to record some sound, and then after the recording I want to be able to pitch shift the sound to make it sound deeper. It doesn't need to be fast. The processing will n...
As I aware about Game-kit framework, i already used the session delegates and peerPickerController.
I want to connect any external device having bluetooth to the iphone through programatically, application will only executed on device, so i able to connect any external device and want to transfer data between them.
Can any suggest me sol...
Hey,
I'm using CoreData in my application and depend on the NSManagedObjectContextObjectsDidChangeNotification. I have already subclassed NSManagedObject for all my Entities and created the properties and @dynamic accessors. Is it possible to exclude some properties of specific entities from the notification? If so, how would I do it? :...
Warning:
Cannot insert breakpoint 2.
Error accessing memory address 0x96ba5efe: Unknown error: -1.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Cannot call into the loader at present, it is locked.)
Can anyone help me out with this?
It is giving me this error every time I debug on the device but never on th...
Is there any way to hide protocol conforming from an end user? I'll try to describe in details what I want. I have class let's call it EndUserClass which conforms some protocol let's say HiddenClassDelegate and this protocol I'd like to hide from end user. The code looks like as it follows:
@interface EndUserClass : NSObject <HiddenCla...
I am trying to render text to a shape that isn't a rectangle. The following code works when I add a rectangular path but not when I add an elliptical path. Ultimately, I'd like to draw to any path (L shape, etc), has anyone had any luck with this?
-(void)drawRect:(CGRect)rect {
CGContextRef context = UIGraphicsGetCurrentContext();...
Hi guy's
I am having an string array which contains the date values as : 2010-09-18,2010-09-23,2010-09-27.
I need to sort them in descending order,can anyone please help me to do this.
like 2010-09-27,2010-09-23,2010-09-18.
Actually what I am doing was:
-(void) organizeAisleItemsIntoIndexes
{
printf("\n Inside organizeAisleItemsInt...
I need to present a modal view controller and be notified when it is dismissed or notified that I need to dismiss it, looking here I am still confused:
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html#//apple_ref/doc/uid/TP40007457-CH111-SW14
I have my m...