I'm trying to create a Cocoa framework by using a cross-project reference in Xcode.
I have 2 projects: one for the framework; one for the application that will use the framework.
This framework is not intended to be stored within the system; it is an embedded framework that lives within the application bundle.
I have successfully made...
HI There,
I have a View Base Project application and one of the viewcotrollers simply manages a view that houses a UIWebView. I need to be able to detect tapping events on the UIWebView. I've tried suggestion here but cannot get it to work. http://mithin.in/2009/08/26/detecting-taps-and-events-on-uiwebview-the-right-way/
Would anyone hav...
Hi all,
I am annoyed with this piece of code.
I am trying to get the averagePowerForChannel and peakPowerForChannel while recording Audio, but every time i am getting it as 0.0
Below is my code for recording audio :
NSMutableDictionary *recordSetting =[[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithFloat: 22050.0], ...
Hey,
I've been working on a Cook Book App but each view ( or recipie page) takes about 45 minutes to complete so as you can imagine its taking forever.
The problem is that I have to manually:
Set up a gradient image for the back ground (Somtimes I have to add a few image backgrounds to fit the view as I often use a scroll view, not s...
I am trying to have a label display single-digit numbers as double-digit numbers (ie. 1 => 01) . I may be using the wrong method to set the value for the label but the thing is I'm not even sure about that after pouring over Apple's documentation and scouring the internet.
[secondsLabel setValue:[NSString stringWithFormat:@"%2d", secon...
Hello
I'm writing an iPhone app using JSON framework. I couldn't serialize an NSObject, I found only serialize for nsstring, nsarray, nsdata, but I want to serialize a generic object from template object; any class library for this?
I have a user class, with userid, username and password. I want to serialize this class and send to serve...
I've got an application that uses a Tab Bar Controller along with a Navigation Controller.But for some pages I want to hide both bars(Tab & navigation) after that those will be visible again...I am able to hide navigation bar & also done with making. it appear after some pages.
I am able to hide tab bar with
- (BOOL)hidesBottomBarWhenPu...
I create the picker:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
imagePicker.delegate = self;
imagePicker.allowsEditing = NO;
[self presentModalViewController:imagePicker animated:YES];
and I handle the didFinishPickingMediaWithInfo:
...
Hi,
This is yet one more of those "how to switch from running with a dock icon to running without one" questions with a twist.. I don't want the dock icon but I do want a menu bar when the application is at the front. Is that possible?
Running an application with LSUIElement set to 1 in the plist will launch the application without a d...
I want to use/reuse C++ object with Objective-C.
I have a hello.h that has the class definition, and hello.cpp for class implementation.
class Hello
{ int getX() ... };
And I use this class in Objective-C function.
#include "hello.h"
...
- (IBAction) adderTwo:(id)sender
{
Hello *hi = new Hello();
int value = hi->g...
First: No, none of the content should be loaded from the web. All content parts are shipped with the main bundle.
I have n images and mass of text (including lists). Instead of building all view parts programmatically in objective-c if was thinking of using an UIWebView and build "only" the HTML dynamically.
Does anything speaks agains...
hey all i have a program for inserting new now dynamically in table view. But it displays the inserted row the end.How can i display the inserted row at the first position.
...
im sure this is completely simple , infact i'm sure i have already seen the code for this somewhere , i just cant remember for the life of me where.
all i want to do is add the little swirl image thing whilst loading. can anyone point me in the right direction
Thanks
Richard
...
Objective-C for iPad, Where do you put IBOutlet? In instance variable decleration or @property decleration? Is there a difference at all?
...
i have a struct HLRange with two CGFloat's
struct HOLRange
{
CGFloat min;
CGFloat max;
};
typedef struct HOLRange HOLRange;
but how do i make a function like HLRangeMake(1,2); .. like CGRectMake?
--EDIT--
my header file
#import <Foundation/Foundation.h>
struct HOLRange
{
CGFloat min;
CGFloat max;
};
typedef struct HOLRange...
I have a xib. the xib has a button that swaps another xib.
the second xib has a uitextfield and a uilabel.
how do I make the keyboard go away when I'm done typing? what do I need to wire or code? the second xib has it's own class (called CustomSign.m)
Inside CustomSign.m, I've implemented the following method
-(void)textFieldDidEndEd...
Basically i map my controllers to accept the address class to be passed into the listingpage controller. Which is done here:
[map from:@"tt://listingPage/(initWithResult:)" toViewController:[ListingPageController class]];
[map from:[Address class] name:@"result" toURL:@"tt://listingPage/(initWithResult:)"];
This url is being used ...
I want to store my CGPoint to the NSMultable Array, so , I have method like this:
[self.points addObject:CGPointMake(x, y)];
But I got the error, it said that :
Incompatible type for argument 1 of
"addObject".
So, I check out the API,
(void)addObject:(id)anObject
anObject The object to add to the end
of the receiver...
Hi ;
I want to take a connection the Remote Server and POST / GET data from there on my Iphone Application. Problem is i did not find a good source for that. Is the XMLRPC the best way for that? I check the Wordpress Iphone App codes which has beed developed with XMLRPC but i don't understand some parts. Do i need any web service on oth...
I use the following code to load an image into an scroll view. The image always loads at 100% zoom. Is there a way to set it to load to another zoom level, say .37?
I have tried scrollView.zoomScale = .37 but it didnt seem to work
UIImageView *tempImage = [[UIImageView alloc]initWithImage:[UIImage imageWithData:data]];
self.ima...