Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2009-09-04 08:50:13 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3fd22a021961760f2f014165ed451139f62239ef
3fd22a02
1 parent
93ed1825
Use autoreleased labels for consistency
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
Classes/ASIAuthenticationDialog.m
Classes/ASIAuthenticationDialog.m
View file @
3fd22a0
...
...
@@ -64,7 +64,7 @@ NSLock *dialogLock = nil;
// Setup the title (Couldn't figure out how to put this in the same toolbar as the buttons)
UIToolbar
*
titleBar
=
[[[
UIToolbar
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
320
,
30
)]
autorelease
];
UILabel
*
label
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
10
,
0
,
300
,
30
)
];
UILabel
*
label
=
[[
[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
10
,
0
,
300
,
30
)]
autorelease
];
if
([
self
type
]
==
ASIProxyAuthenticationType
)
{
[
label
setText
:
@"Login to this secure proxy server."
];
}
else
{
...
...
@@ -79,7 +79,6 @@ NSLock *dialogLock = nil;
[
label
setTextAlignment
:
UITextAlignmentCenter
];
[
titleBar
addSubview
:
label
];
[
label
release
];
[[
self
loginDialog
]
addSubview
:
titleBar
];
// Setup the toolbar
...
...
@@ -89,7 +88,7 @@ NSLock *dialogLock = nil;
UIBarButtonItem
*
backButton
=
[[[
UIBarButtonItem
alloc
]
initWithBarButtonSystemItem
:
UIBarButtonSystemItemCancel
target
:
self
action
:
@selector
(
cancelAuthenticationFromDialog
:)]
autorelease
];
[
items
addObject
:
backButton
];
label
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
170
,
50
)
];
label
=
[[
[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
170
,
50
)]
autorelease
];
if
([
self
type
]
==
ASIProxyAuthenticationType
)
{
[
label
setText
:[[
self
request
]
proxyHost
]];
}
else
{
...
...
@@ -104,7 +103,6 @@ NSLock *dialogLock = nil;
[
label
setTextAlignment
:
UITextAlignmentCenter
];
[
toolbar
addSubview
:
label
];
[
label
release
];
UIBarButtonItem
*
labelButton
=
[[[
UIBarButtonItem
alloc
]
initWithBarButtonSystemItem
:
UIBarButtonSystemItemCancel
target
:
nil
action
:
nil
]
autorelease
];
[
labelButton
setCustomView
:
label
];
...
...
Please
register
or
login
to post a comment